Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
41 views

Questions Simple

ASP.NET is a framework developed by Microsoft for building dynamic web sites using web forms, MVC, HTML, CSS and JavaScript. It allows writing output using Response.Output.Write() and the ViewState is available after Init() and before Page_Load(). Server.Transfer passes request between pages without returning to the browser while Response.Redirect returns to the browser first before redirecting. All web forms inherit from the Page class and common validators include Required Field, Range, Compare, Custom, Regular Expression, and Summary validators.

Uploaded by

Alex M John
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Questions Simple

ASP.NET is a framework developed by Microsoft for building dynamic web sites using web forms, MVC, HTML, CSS and JavaScript. It allows writing output using Response.Output.Write() and the ViewState is available after Init() and before Page_Load(). Server.Transfer passes request between pages without returning to the browser while Response.Redirect returns to the browser first before redirecting. All web forms inherit from the Page class and common validators include Required Field, Range, Compare, Custom, Regular Expression, and Summary validators.

Uploaded by

Alex M John
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. What is ASP.Net?

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.
2. Whats the use of Response.Output.Write()?
We can write formatted output using Response.Output.Write().
3. In which event of page cycle is the ViewState available?
After the Init() and before the Page_Load().
4. 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 clients 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 users browser to another page or site. It performs trip back to the
client where the clients browser is redirected to the new page. The users browser history list is updated to
reflect the new address.

5. From which base class all Web Forms are inherited?


Page class.
6. What are the different validators in ASP.NET?
1. Required field Validator
2. Range Validator
3. Compare Validator
4. Custom Validator
5. Regular expression Validator
6. Summary Validator
7. Which validator control you use if you need to make sure the values in two different controls matched?

Compare Validator control.

8. What is ViewState?

ViewState is used to retain the state of server-side objects between page post backs.

You might also like