Monday, January 28, 2013

ASP.NET Questions and Answers - Part 2

How can we prevent browser from caching an ASPX page? 
Use the SetNoStore method of the HttpCachePolicy class to direct the client not to store the responses in its history. See

In which event are the controls fully loaded?
On Load event. (
The Page object calls the OnLoad method on the Page object, and then recursively does the same for each child control until the page and all controls are loaded. The Load event of individual controls occurs after the Load event of the page.
Use the OnLoad event method to set properties in controls and to establish database connections.

How we can force all the validation controls to run?
Using Page.Validate() method to instructs any validation controls included on the page to validate their assigned information.

What is .ASCX file?
.ascx file is a user control file.

Related posts:

No comments:

Post a Comment

How to recognize a fake Geek Squad renewal scam | Consumer Advice

Except from Scammers are at it ag...