template page page_load fired twice

R

Rippo

Hi

I have a Master page that opens up a db connection, performs a couple
of global routines in the page_load event. All of my other web pages in
my web app then inherits this Master Page

I also have a page_load event on all of the other pages. I am finding
however that the page_load event on the template page is being fired
twice.

Is there a work around so that the template master page page_load event
only gets fired once?

I am using .net (VB) 1.1 and VS2003
 
S

Scott Allen

The page shouldn't act this way - anychance you have
AutoEventWireup="true" in the @ Page directive AND explicitly wire up
the event (in VB the Page_Load event would use the Handles keyword).
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top