G
gellis99
I've searched several discussions on this topic and haven't been able
to resolve my issue. I have a function I call within the page_load
event of a page. This function makes a call to the database to
retrieve data. While I was doing performance review of the site, my
sql profiler showed that query being executed multiple times for a
single page load.
I'm using several web user controls on the pages, none of which call
this function. I've checked to make sure that the
AutoEventWireup="false" on the page. It appears the number of repetive
calls is related to the number of controls on my page; the more the
controls the more times it executes the Page_Load.
Can anyone provide any clues about this problem? It doesn't impact the
functionality of the pages, but I don't want to burn up excess
resources. Thanks.
to resolve my issue. I have a function I call within the page_load
event of a page. This function makes a call to the database to
retrieve data. While I was doing performance review of the site, my
sql profiler showed that query being executed multiple times for a
single page load.
I'm using several web user controls on the pages, none of which call
this function. I've checked to make sure that the
AutoEventWireup="false" on the page. It appears the number of repetive
calls is related to the number of controls on my page; the more the
controls the more times it executes the Page_Load.
Can anyone provide any clues about this problem? It doesn't impact the
functionality of the pages, but I don't want to burn up excess
resources. Thanks.