Home > Interview Questions > C#.NET > How can you verify that the page is Post back or not?

How can you verify that the page is Post back or not?

by Thamil   on 11/08/2014   Category: C#.NET   |  Level: Beginner   |  Views: 1126    |  Points: 25     |  Gold 


By using IsPostBack property from page object. IsPostBack returns the Boolean value,

True: if any post back event occurred.
False: Page is accessing the server for the first time.

See the below sample code.
if (!Page.IsPostBack)
{

}



« Which is the base class of asp.net web server controls?
» problèm with arabic exporting datatable to excel
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts