Ans :

1. ItemTemplate

2. AlternatingltemTemplate

3. SeparatorTemplate

4. HeaderTemplate

5. FooterTemplate

 

Ans :

In asp.Net Web config file is specific to a web application where as machine config is specific to a machine or server. There can be multiple web config files into an application where as we can have only one machine config file on a server.

 

Ans :

1. Page_PreInit
2. Page_Init
3. Page_InitComplete
4. Page_PreLoad
5. Page_Load
6. Page_LoadComplete
7. Page_PreRender
8. Render

 

Ans :

In Asp.Net 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.

In Asp.Net 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.

 

 

Ans :

After the Init() and before the Page_Load().

 

Ans :

We can write formatted output using Response.Output.Write().

 

Ans :

The Page.Validate() method is used to force all the validation controls to run and to perform validation.

 

Ans :

Boxing is assigning a value type to reference type variable.

Unboxing is reverse of boxing ie. Assigning reference type variable to value type variable.

 

 

Ans :

RedirectPermanent Performs a permanent redirection from the requested URL to the specified URL. Once the redirection is done, it also returns 301 Moved Permanently responses.

 
Page 1 of 0