The best place

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.
 
G

Guest

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 :)
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top