Asp.net and C# Interview Qustions
ASP.NET 1. Where machine.config resides? 32-bit % windir % \Microsoft . NET\Framework\[version ] \config\machine . config 64-bit % windir % \Microsoft . NET\Framework64\[version ] \config\machine . config [version] should be equal to v1.0.3705 , v1.1.4322 , v2.0.50727 or v4.0.30319 . 2. How can we prevent browser from caching an ASPX page? We can SetNoStore on HttpCachePolicy object exposed by the Response object’s Cache property: 1 2 Response . Cache . SetNoStore ( ) ; Response . Write ( DateTime . Now . ToLongTimeString ( ) ) ; 3. Page Life cycle stages? Stage Description Page request The page request occurs before the page life cycle begins. When the page is requested by a user, ASP.NET determines whether the page needs to be parsed and compiled (therefore beginning the life of a page), or whether a cached version of the page can be sent in response without running the page. Start In the ...