ASP NET Questions


Q.  If you want to cache the page according to the browser, then what will you do?

a. Write the given below code in aspx page. <%@ OutputCache Duration=”500” VaryByParam=”none” VaryByCustom=”browser” %>
b. Write the given below code in aspx page. <%@ OutputCache Duration=”500” VaryByParam=”none” VaryByHeader=”browser” %>
c. Write the given below code in aspx page. <%@ OutputCache Duration=”500” VaryByParam=” browser” VaryByCustom=”none” %>
d. None of the above.


ANSWER: See Answer
 
No explanation is available for this question!
MCQs:  If any user has disabled cookies in their browsers, what can you do to enable them to use forms authentication?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  What is the use of VaryByParam attribute in OutputCache directive?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  You need to programmatically configure page output caching. Which object would you use?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which control is required inside a content page to reference ContentPlaceHolder control inside the master page?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  At which level Theme can be applied?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  When user request a web page by entering Uniform Resource Locator (URL) then which method /verb/command is used in ASP.NET?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  HTTP messages are typically sent between the Web server and Web browser using which Port number?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  What type of data can Cookies store?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  What are the different types of Session Mode in ASP.NET?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which validation control in ASP.NET can be used to determine if the data is entered into a TextBox control is of type Currency?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  CompareValidator control can be used for performing which task?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  You want to enable Page Output Caching in ASP.NET. What code you will write in ASPX page.
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  How many types of Cache Dependencies are available in ASP.NET?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  What are the three main objects of DataSet?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  On what object would you set the properties to create a primary key for a DataTable?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  How many 'ScriptManager' control can be added on a ASP.NET web page?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  Which property and method of the Page object do you use to register client script dynamically from code?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  To create your application on a remote server which option you will choose in ASP.NET?
Category: Computer Science MCQs,   Published by: teswesm
MCQs:  What is Multiple Active Result Sets (MARS)?
Category: Computer Science MCQs,   Published by: teswesm