470,624 Members | 2,179 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

template page page_load fired twice

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

Nov 19 '05 #1
1 1455
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).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 16 Aug 2005 02:30:20 -0700, "Rippo" <in**@rippo.co.uk> wrote:
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


Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Andy | last post: by
1 post views Thread by Magdelin | last post: by
1 post views Thread by Johan Nedin | last post: by
7 posts views Thread by UJ | last post: by
8 posts views Thread by MaryA | last post: by
8 posts views Thread by TS | last post: by
reply views Thread by Rajeev | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.