:) No, that's not what he means.
In the button postback=true will trigger a postback, yes.
Now you want the code behind to do different things if the page is postback or not. Typically you break items up into three groups like this...
protected void Page_Load(...blahblah...)
{
... This is code you always want executed whether the page is postback or not...
if (Page.IsPostBack)
{
...Code that should only execute if the page IS postback...
}
if (!Page.IsPostBack)
{
...Code that should only execute if the page id NOT postback, the exclamation point means "not"...
}
}
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
|