|
1.
|
What are the three types of SessionState modes?
|
| |
1.InProc - Session kept as a live object in the web server(aspnet_wp.exe)
2.StateServer - Session serialized and stored in the memory as a seperate process(aspnet_state.exe), we can use it for webfarm architecture
3.SQLServer - Session serialized and stored in the sql server
|
| 2. |
What are the 6 types of validation controls in ASP.NET?
|
| |
1. Required Field Validator 2. Range Validator 3. Regular Expression Validator 4. Compare Validator 5. Custom Validator 6. Validation Summary
|
| 3. |
Which property to be set for avoiding validations for a button?
|
| |
CausesValidation=False
|
| 4. |
What are the three types of caching in ASP.NET?
|
| |
1. Output Caching(Page Caching)- stores the responses from an asp.net page(aspx) or user control(.ascx).
2.Fragment Caching(Partial Caching) - Only stores the portion of a page.
3. Data Caching - is the programmatic way to your objects to a managed cache.
//Add item
Cache["TopProducts"] = objTopProductsDataset;
//Retrieve item
objDataset = Cache["TopProducts"];
|
| 5. |
How to Manage state in ASP.NET?
|
| |
we can manage the state in two ways
Clent based techniques are Viewstate, Query strings and Cookies.
Server based techniques are Application and Session
|
| 6. |
Which are the two properties on every validation control?
|
| |
ControlToValidate & ErrorMessage
|
| 7. |
What is the different between Server.Transfer and Response.Redirect
|
| |
Server.Transfer used to transfer the contents from one page to another(same webserver)
Response.Redirect used to transfer the contents from one server to external server too
|
| 8. |
What are ASP.NET 2.0 Page Life Cycle Events?
|
| |
1.PreInit, 2.Init, 3.InitComplete, 4.PreLoad, 5.Load, 6.Control events, 7.LoadComplete,
8.PreRender, 9. SaveStateComplete, 10. Render, 11.Unload
|
| 9. |
What are the differences between HTML controls and Web controls?
|
| |
|
Web Server Controls
|
HTML Server Controls
|
| Web Controls are feature rich controls. Calendar controls,Datagrid,Repeater, validation controls.
|
HTML controls are small and light weight.
|
|
Viewstate support
|
No viewstate support
|
|
Inherit from System.Web.UI.WebControls
|
Inherit from System.Web.UI.HTMLControls
|
|
| 10. |
How can I use IIS to test my pages in VS.NET, and not use the internal server?
|
| |
In the Solution Explorer, right-click the name of the Web site for which you want to specify a Web server, and then click Property Pages.
In the Property Pages dialog box, click the Start Options tab. Under Server, click Use custom server.
In the Base URL box, type the URL that Visual Web Developer should start when running the current Web site. You can use localhost.
From that point on, the VS.NET IDE will not use the internal web server, but will use IIS to open your pages, i.e., if you are working on default.aspx, it will be opened as : http://localhost/default.aspx
|