ASP.Net Interview Questions and
Answers Graded A+
What is ASP.Net? - Correct answer-It is a framework developed by Microsoft on
which we can develop new generation web sites using web forms(aspx), MVC,
HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP).
Currently there is ASP.NET 4.0, which is used to develop web sites. There are
various page extensions provided by Microsoft that are being used for web site
development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc.
What's the use of Response.Output.Write()? - Correct answer-We can write
formatted output using Response.Output.Write().
In which event of page cycle is the ViewState available? - Correct answer-After the
Init() and before the Page_Load().
What is the difference between Server.Transfer and Response.Redirect? - Correct
answer-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.
From which base class all Web Forms are inherited? - Correct answer-Page class.
What are the different validators in ASP.NET? - Correct answer-- 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? - Correct answer-Compare Validator control.
What is ViewState? - Correct answer-ViewState is used to retain the state of server-
side objects between page post backs.
Answers Graded A+
What is ASP.Net? - Correct answer-It is a framework developed by Microsoft on
which we can develop new generation web sites using web forms(aspx), MVC,
HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP).
Currently there is ASP.NET 4.0, which is used to develop web sites. There are
various page extensions provided by Microsoft that are being used for web site
development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, XML etc.
What's the use of Response.Output.Write()? - Correct answer-We can write
formatted output using Response.Output.Write().
In which event of page cycle is the ViewState available? - Correct answer-After the
Init() and before the Page_Load().
What is the difference between Server.Transfer and Response.Redirect? - Correct
answer-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.
From which base class all Web Forms are inherited? - Correct answer-Page class.
What are the different validators in ASP.NET? - Correct answer-- 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? - Correct answer-Compare Validator control.
What is ViewState? - Correct answer-ViewState is used to retain the state of server-
side objects between page post backs.