The best place

  • Thread starter Thread starter etam
  • Start date Start date
E

etam

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.
 
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.
 
Back
Top