top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the concept of Postback in ASP.NET?

+5 votes
178 views
What is the concept of Postback in ASP.NET?
posted Jan 29, 2015 by Muskan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes
 
Best answer

In the context of web development, a postback is an HTTP POST to the same page that the form is on. In other words, the contents of the form are POSTed back to the same URL as the form.

Postbacks are commonly seen in edit forms, where the user introduces information in a form and hits "save" or "submit", causing a postback. The server then refreshes the same page using the information it has just received.

Postbacks are most commonly discussed in relation to JSF and ASP or ASP.NET.

In ASP, a form and its POST action have to be created as two separate pages, resulting in the need for an intermediate page and a redirect if one simply wants to perform a postback. This problem was addressed in ASP.NET with the __doPostBack() function and an application model that allows a page to perform validation and processing on its own form data.

In JSF, postbacks trigger the full JSF life-cycle, which just like ASP.NET performs conversion and validation of the form data that was included in the postback. Various utility methods are present in the JSF API to programmatically check if a given request is a postback or not.

answer Feb 4, 2015 by Manikandan J
+2 votes

PostBack is the name given to the process of submitting an ASP.NET page to the server for processing. PostBack is done if certain credentials of the page are to be checked against some sources (such as verification of username and password using database etc etc). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server. (you can compare it as Ajax in PHP/JS structure)

answer Jan 29, 2015 by Vikram Luthra
Similar Questions
+4 votes

Can someone brief me about the new ASP.NET Identity system.

+7 votes

How to create your own controls?
Basic steps will be helpful.

+4 votes
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...