How do you check page is post back

No.of Views2346
Bookmarked0
By RRaveen  On 14 Jan 2011
emailbookmarkadd commentsprint
 

Answer:

By checking the IsPostBack property. If IsPostBack is True, the page has been posted back.

Example

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
// code
        }
     }

 

 
 
About Author
 
RRaveen
Occupation-Software Engineer
Company-TGS
Member Type-Gold
Location-Singapore
Joined date-03 Jun 2009
Home Page-codegain.com
Blog Page-www.codegain.com
- B.Sc. degree in Computer Science. - 4+ years experience in Visual C#.net and VB.net - Obsessed in OOP style design and programming. - Designing and developing Network security tools. - Designing and developing a client/server application for sharing files among users in a way other than FTP protocol. - Designing and implementing GSM gateway applications and bulk messaging. - Windows Mobile and Symbian Programming - Having knowledge with ERP solutions
 
 
Other popular Interview Questions On ASP.NET
^ Scroll to Top