Page_Load event gets called twice

  • Thread starter Thread starter Dave Hagerich
  • Start date Start date
D

Dave Hagerich

I currently have an aspx page that contains a datagrid object and every time
the page goes through its lifecycle the Page_Load event gets called twice.
I've checked my code and I'm not manually calling it anywhere so the server
must be doing it. Can anybody tell me why? and is it possible to stop it?
Im using if(!IsPostBack) to see it its a reload and both calls are made
before the IsPostBack is set to true. Any help would be appreciated.

Thanks,
Dave
 
Dave,

Dave Hagerich said:
I currently have an aspx

Note that this is a Windows Forms-related group. For questions related to
ASP.NET Web Forms consider posting to
"microsoft.public.dotnet.framework.aspnet.webcontrols".
 

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