ASP.NET Refresher Flashcards
Select extension of file in asp.net
.aspx (.aspx)
Select protocol is used to call a web service
HTTP
What is MVC? IN ASP.NET CONTEXT?
Framework
Select the event which is NOT in page life cycle.
Page_Unload (Page_Unload)
Select the session state management option which is NOT available in ASP.NET.
In-Out-Process (In-Out-Process)
In which event of page cycle is the ViewState available?
After the Init() and before the Page_Load().
From which base class all Web Forms are inherited?
Page class
What are the different validators in ASP.NET?
Required field Validator Range Validator Compare Validator Custom Validator Regular expression Validator Summary Validator
Which validator control you use if you need to make sure the values in two different controls matched?
Compare Validator control.
What is ViewState?
ViewState is used to retain the state of server-side objects between page post backs.
In which event of page cycle is the ViewState available?
After the Init() and before the Page_Load().
What is the difference between Server.Transfer and Response.Redirect?
In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client’s browser. This provides a faster response with a little less overhead on the server. The clients url history list or current url Server does not update in case of Server.Transfer.
Response.Redirect is used to redirect the user’s browser to another page or site. It performs trip back to the client where the client’s browser is redirected to the new page. The user’s browser history list is updated to reflect the new address.
Where the viewstate is stored after the page postback?
ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.
How long the items in ViewState exists?
They exist for the life of the current page.
What are the different Session state management options available in ASP.NET?
In-Process
Out-of-Process.
In-Process stores the session in memory on the web server.
Out-of-Process Session state management stores data in an external server. The external server may be either a SQL Server or a State Server. All objects stored in session are required to be serializable for Out-of-Process state management.