Tuesday 2 October 2012

Some Questions On .Net #2


Q1.How does you sign-out from forms authentication?
Ans. The forms authentication.signout() method is used to sign-out from  the forms authentication.

Q2. What is the auto postback?
Ans. If you want to postback automatically when an event is raised, you need to set the autopostback property of the control to true.

Q3. What is the function of the viewstate property?
Ans. The ASP.NET 4.0 introduced a new property called viewstatemode for the control class. Now you can enable the viewstate to an individual control even if the view state for an asp.net page is disabled.

Q4. Why do you use the app_code folder in asp.net?
Ans. The app_code folder is automatically present in the project. It stores the files, such as classes, typed data set, text files & reports. If this folder is not available in the application, you can add this folder.

Q5. Define a multilingual web site?
Ans. A multilingual web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date & time in different languages.

Q6. What is an asp.net web form?
Ans. ASP.NET web forms are designed to use controls & features that are almost as powerful as the ones used with windows forms, & so they are called as web forms.

Q7. How can you display all validation messages in one control?
Ans. The validation summary controls display all validation messages in one control.

Q8.Which two new properties are added in ASP.NET 4.0 page class?
Ans. The two new properties added in the page class are metakeyword & metadescription.

Q9.How can you register a custom server control to a web page?
Ans. You can register a custom server control to web page using the @register directive.

Q10. Which ASP.NET objects encapsulate the state of the client & the browser?
Ans. The session objects encapsulate the state of the client & browser.    





No comments:

Post a Comment