Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How can I used IsPostback property in grid, button and dropdown ?
Posted
Comments
Sergey Alexandrovich Kryukov 10-Sep-13 1:44am    
Why not simply reading about it in MSDN? Why do you think the CodeProject answers should tell you something more?
—SA

Rule one: Google. A simple search would get you to the MSDN documentation for IsPostBack[^]

Try:
C#
if (!IsPostBack)
    {
    ...
    }
 
Share this answer
 
It's simple one

C#
protected void Page_Load()

{
if(!IsPostback)
{
put your statments block here // it execute only once when page load first time
}
}







Ravi Halvadiya

Software Engineer

www.InsightSoftech.com
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900