How ASP and ASP.NET page works.

Answer Posted / justlogin

When a web browser requests a page from a web server, the
web server (IIS) will first check if the request is for an
HTML page. If it is, the request is fulfilled by fetching
the files from the OS and then returning it to the client
(web browser). If the client is requesting an ASP.NET page,
IIS will pass the request to the ASP.NET runtime, which will
then process the application and return the output to the
client.
ASP.NET pages use the .aspx extension. This is to ensure
that ASP.NET is able to run side by side with classic ASP on
the same server, which uses the extension .asp.
One of the inherent problems with the HTTP protocol is its
stateless nature. Put simply, a request made by a user is
loaded into memory, fulfilled, and then unloaded. Subsequent
requests by the same user are treated just like any request;
the server makes no attempt to remember what the user has
previously requested. This stateless nature makes writing
web applications a challenge, because the application
developer must explicitly devise mechanisms to enable the
server to remember the previous state of the application.
Several mechanisms have been devised over the years, such as
cookies and the use of query strings for passing information
to and from the server and the client.
In classic ASP, you typically need to write pages of code in
order to preserve the state of the page after the user has
posted a value back to the server. In ASP.NET, all of these
mundane tasks (collectively known as state management) are
accomplished by the ASP.NET runtime. You will learn more on
this in the following sections.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you design a website with multilingual support in ASP.NET ?

748


What are the different web pages?

666


What is difference between viewstate and session state in javascript?

824


What is enableviewstate in asp net?

712


What is the life-span of the items in the viewstate?

715


What are main return types supported in Web API?

995


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

771


A web service can only be written in .net? State whether true or false.

735


What is new asp.net core?

772


How does http session work?

731


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

866


What is a gridview in asp.net?

735


Explain about consistent programming model in the .NET framework?

792


What are server side controls?

739


What are sql joins?

754