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