Page Load not called

  • Thread starter Thread starter Joey Lee
  • Start date Start date
J

Joey Lee

Hi,

Is there any situation where the PageLoad event is not called when a
postback is made from and event?

Strangely, I am facing a situation where DataGrid ItemCreated event is
called first without going thru pageload when a postback is made? Any idea y
this happen?

Thank

Joey
 
Well, the Load event is nothing more then a normal event that must be set
when the form initializes. Check the initialization code that the IDE
places in the file by default and see if the Page_Load is added to the Load
event.
 
Yup. its there. During the first call of the page it goes thru my code in
PageLoad
But after that(postback) it seems to bypass it.

I was tracing thru VS and it does all the onInit and the InitializeComponent
part as well(where the event binding takes place).

So logically it should be called.

Joey
 

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

Back
Top