1. What does the "EnableViewState" property do?EnableViewState stores the current state of the page and the objects in it like text boxes, buttons, tables etc. So this helps not losing the state between the round trips between client and server. But this is a very expensive on browser. It delays rendering on the browser, so you should enable it only for the important fields/objects.
2. What is the difference between Server.Transfer and Response.Redirect?
Server.Transfer transfers the currnet context of the page to the next page and also avoids double roundtrips. Where as Response.Redirect could only pass querystring and also requires roundtrip.
3. Whats an assembly?
An assembly is the primary building block of .NET. It's a reusable, self-describing,versionable deployment unit for types and resources. They are self-describing so to allow the .NET runtime to fully understand the application and enforce dependency and versioning rules.
4. What base class do all web forms inherit from?
System.web.UI.Page class. But for UserControl its System.Web.UI.UserControl
5. what method do you use to explicitly kill a users session?
Session.Abandon
2. What is the difference between Server.Transfer and Response.Redirect?
Server.Transfer transfers the currnet context of the page to the next page and also avoids double roundtrips. Where as Response.Redirect could only pass querystring and also requires roundtrip.
3. Whats an assembly?
An assembly is the primary building block of .NET. It's a reusable, self-describing,versionable deployment unit for types and resources. They are self-describing so to allow the .NET runtime to fully understand the application and enforce dependency and versioning rules.
4. What base class do all web forms inherit from?
System.web.UI.Page class. But for UserControl its System.Web.UI.UserControl
5. what method do you use to explicitly kill a users session?
Session.Abandon
No comments:
Post a Comment