IsPostBack determines if Web page is being requested without data being submitted to server

Q.  What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to server?
- Published on 16 Jun 15

a. IsCallback
b. IsReusable
c. IsValid
d. IsPostBack

ANSWER: IsPostBack
 

    Discussion

  • Raj   -Posted on 23 Oct 15
    IsPostBack Page object’s property that determines if a Web page is being requested without data being submitted to server. IsPostBack property returns the boolean value either True or False.
    If the page is being rendered for the first time, the code calls the FillDataGrid() method.
    private void Page_Load()
    {
    if (!IsPostBack)
    {
    // Your implementation
    FillDataGrid ();
    }
    }
    Next time (during postback) FillDataGrid() method will not be called.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)