Asp.Net interview Questions and Answers Part 8

By
1.) What are the Data Types supported by Range Validator Control in asp.net? 
  • Integer
  • Date 
  • String
2.) What is Dynamic page in asp.net?                                                                                    
C# codes provides dynamic functionality in any asp.net application.



3.) What are the ways to maintain the state in asp.net application ?                     
  • Query String
  • Cookies
  • Hidden field controls
  • Session
  • Application Objects
4.) What is @ Register Directives in asp.net ?                                                                     
It inform to compiler whether any custom server control is added to the page or not.

5.) How can we change timeout property for a session object in asp.net ?            
 We can change timeout for a session object by set the timeout property in web.config file in asp.net application.

6.) Which property is common to every validation control in asp.net ?               
  • ControlToValidate
  • Error Message
7.) Which property is used to turn off the cookies for a page in asp.net ?            
Cookie.Discard

8.) Which namespace is used for Debugging the application in asp.net ?            
Using System.Diagnostic;

9.) Which events support in HTTP Session class in asp.net ?                                    
  • Load event
  • Unload event
10.) How to create permanent cookies in asp.net application ?                                
Set cookie.Expirytime = MaxValue .

0 comments:

Post a Comment

Powered by Blogger.