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

In which event of page cycle is the viewstate available?

591


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

1468


What is an asp.net validator? And, mention its types.

596


What is the displayafter property in updateprogress control?

517


Explain asp.net web forms.

573






What is meant by web application?

556


Explain what is event bubbling?

586


How do you implement postback with a text box?

567


How can we apply themes to an asp.net application?

568


Which platform does Microsoft .NET use for exchanging data between applications?

594


i want the asp.net technical questions and answeres

1613


What is state management in asp.net with example?

469


What are early binding and late binding.

580


How do you do client-side validation in .net? How to disable validator control by client side javascript?

544


How tooltip is set through code-behind in ASP.NET?

585