What is IPostBack? How to use it?

System.Web.UI.Ipostback event handler interface to raise event responses on the server to postback calls from the client. This can be a bit tricky, and I would recommend thoroughly examining what you might gain from it that you could not achieve otherwise. For further documentation, look at the "Capturing Postback Events" entry of the .NET Framework Developers Guide.

Questions by fire horse   answers by fire horse

Showing Answers 1 - 5 of 5 Answers

Rohit

  • Oct 24th, 2005
 

Ispostback event is generated by the web controls to alert the server to take respected action of the event generated. When the button is clicked then click event is generated which further cause ispostback event & it alerts the server to take respected action during postback event.

  Was this answer useful?  Yes

Ranjit

  • Nov 8th, 2005
 

Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.

Property Value

true if the page is being loaded in response to a client postback; otherwise, false.

void Page_Load() {
    if (!IsPostBack) {
        // Validate initially to force asterisks
// to appear before the first roundtrip.
        Validate();
    }
}

  Was this answer useful?  Yes

anishcp

  • Sep 17th, 2006
 

IPostBack is an interface which defines the methods ASP.NET server controls must implement to handle post back events.

To create a server control that captures the form submission information from the browser, you must implement this interface.

nousername

  • Jun 19th, 2007
 

Only Anishcp is correct. Before answering any question, please do read the question carefully as the question is about "IPostback"  not "IsPostback". Find more at System.Web.UI.Ipostback event handler interface.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions