DataType return in IsPostback property

Q.  ______________ is the DataType return in IsPostback property.
- Published on 16 Jun 15

a. bit
b. boolean
c. int
d. object
e. string

ANSWER: boolean


  • Raj Singh   -Posted on 13 Sep 15
    IsPostback is page property and its return type is Boolean. Page_Load event fires on every postback event. The IsPostBack property can be used to determine whether the page is being rendered for the first time or is being loaded in response to a postback. If you want that some code should not be run on postback then you should write that code in following manner.
    protected void Page_Load(object sender, EventArgs e)
    if( ! IsPostBack)
    // write code here , which you want to execute in the first time when the page is loaded not during postback.


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.)