event not FIRE

R

ronaldo

I got the problem,
When my sub page_load contain the following statements:

if not(page.isPostBack) then
................
................
end if

then all events(e.g.click) in my web form will NOT work again.
However, if I changed the code as the following:

if not(page.isPostBack) then
................
................
else
..............
end if

Then,all events in this web forms will work again.
So, Can you tell me why?
And, is it the sub page_load will execute first all the time?
 

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

Top