There are two ways to request a page, one is GET and one is POST. When you
enter a url into the address bar, or follow a link it uses GET to just pass
the url and retrieve the html.
When you submit a FORM you can actually specify if the FORM uses GET or
POST. The advantage with POST is that the form data is "hidden" and can be
unlimited in size (there is probably a limit somewhere). Whereas with GET
the form data is on the querystring and is easily seen and updated, and
there is a limit to how long the url can be, so there is a limit to the size
of your data.
You can look in the ServerVariables collection at "REQUEST_METHOD" to see if
you page is being requested via a GET or a POST. When asp.net renders your
page it puts a FORM that uses POST as a method, so when that page is
requested, if it is being POSTd then it knows it is a postback.
I'm sure it doesn't just go on the request method though, with the form will
be certain data that asp.net tests is there to verify it is a genuine
postback.
"archana" <tr**************@yahoo.comwrote in message
news:11********************@q75g2000hsh.googlegrou ps.com...
Hi all,
I am new to asp.net i want to ask some help about postback mechanism
of web page.
CAn anyone tell me how postback mechanism is handle by asp.net worker
process. Means why worker process know that this page is posted back
or this page is requested first time. Means which parameter of
httpwebrequest send this information.
If i am wrong please correct me,
thanks in advance.