vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Sunday, March 17, 2013

Interview Questions in ASP.Net PART 1



1. Which method has been introduced in asp.net 4.0 to redirect page permanently?

The Redirectpermanent() method added in Asp.net 4.0  to redirect a page permanently. It’s the method of Page.HTTPReposne class that permanently redirects a requested URL to specified URL and issue HTTP 301response code Moved permanently responses.
Response. RedirectPermanent("/newlocation/oldcontent.aspx");

2. What is the difference between the Response.Write() and Response.Output.write()

The Response.write method allows you to write the normal output
The Response.Output.write() method allows you to write the formatted output.

3. What is the default time out of Cookie?

The default timeout duration of cookie is 30 minutes.

4. What are the event handlers that can be included in the Global.asax file?

Global.asax file contains some of the following important event handlers..
*Application_error
*Application_start
*Application_End
*Session_Start
*Session_End

5.What is the appsettings section in the web.config file?

The web.config file sets theconfiguration for a web project.The appsettings block in configuration file sets the user defined values for the whole application. 

6. Where is the viewstate information stored?

Viewstate information stored in HTML hidden fields in client side

7.To which class a web form belongs to in the  .Net frame work class hierarchy?

Web form belongs to the System.web.UI.Page

8.Which event determines all the control are completely loaded in to memory?

The Page_Load event determines that all the control on the page are fully loaded. However you can also access the control in Page_init event but viewstate property does not load completely during this event.

9.What is the function of Viewstate property?

The ASP.Net 4.0 introduced viewstate property.Now you can enable view state to an individual control even the viewstate of the page is diabled.

10.Which two new properties introduced in Asp.Net 4.0 in page class?

Metakeyword and Metadescription.

0 comments:

Post a Comment