where is the best place for setting components on load but only if
this is not a postback?
protected void Page_Load(object sender, EventArgs e) {
if(!Page.IsPostBack) {
//here?
}
}
Regards,
Etam.On May 27, 8:42 pm, etam <odwrot...@dotnet.itags.org.gmail.comwrote:
Quote:
Originally Posted by
Hi,
>
where is the best place for setting components on load but only if
this is not a postback?
>
protected void Page_Load(object sender, EventArgs e) {
if(!Page.IsPostBack) {
//here?
}
}
>
Regards,
Etam.
yup :-)
That's not a terrible place, although the Page_Init event might be better
depending on exactly what it is you're trying to do.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"etam" <odwrotnie@dotnet.itags.org.gmail.comwrote in message
news:1180291329.036276.205340@dotnet.itags.org.m36g2000hse.googlegr oups.com...
Quote:
Originally Posted by
Hi,
>
where is the best place for setting components on load but only if
this is not a postback?
>
protected void Page_Load(object sender, EventArgs e) {
if(!Page.IsPostBack) {
//here?
}
}
>
Regards,
Etam.
>
0 comments:
Post a Comment