ASP.NET Programming model

ASP.NET supports two types of programming models

Call Back Method:(Default)

If used then the data will be submitted automatically back to same page.

Page.IsPostBack:

It is the property which is used to identify the page request type  and returns false if the page is requested for first time else true.

Cross page submission Method:
It is a new model introduced in ASP.NET 2.0 for submitting the data present in one web form to other.

PostBackUrl:
It is used to specify the URL where the data should be submitted or posted back.

To collect the data:

If GET method is used to submit the data, we use
Request.QueryString["name"]

If Post method is used to submit the data, we use
Request .Form["name"]
Post is the default method for submitting the data.


No comments:

Post a Comment