ASP.NET INTERVIEW QUESTION & ANSWERS
31. |
What are the components of web form in ASP.NET? |
|
There are four components of web form in Asp.net are :
- HTML controls
- Server controls
- System components.
- Data controls
|
32. |
How do you turn off cookies for one page in your site? |
|
Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user's hard disk when a session ends. |
33. |
Which namespace is needed to implement debug and trace? |
|
Debug and trace class belongs to System.Diagnostic namespace. |
34. |
What events does the HttpSession class support? |
|
The HttpSession class supports the Load and Unload events. |
35. |
Which two properties are on every validation control?
|
|
- Control To Validate
- ErrorMessage properties
|