PC Review


Reply
Thread Tools Rate Thread

Confused with autoeventwireup

 
 
=?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
Guest
Posts: n/a
 
      25th Aug 2006
I read that autoeventwireup="false" doesn't cause Page_Load to fire
automatically and trying it out with a simple page this can be confirmed
easily.
However, I have a page with autoeventwireup="false" (that has a masterpage
with autoeventwireup="false" as well) and Page_Load DOES fire in the page.
How can this be ? Other pages using the same Master page does NOT fire
Page_Load, unless I wire up the event manually.
I'm totally confused. Moreover, this specific page fires Page_Load and all
other events TWICE.
 
Reply With Quote
 
 
 
 
Marina Levit [MVP]
Guest
Posts: n/a
 
      25th Aug 2006
If this is the only page with the problem, then clearly something is
different about this page. There must be something else going on there, some
other difference, some other code running that is causing this on the one
particular page, while all other pages are fine.

You should carefully examine all the differences between this page and the
others, as well as remove unecessary pieces of code to really boil it down
to what the problem is.

"Carlo Marchesoni" <(E-Mail Removed)> wrote in
message news:C09CAE97-FC77-4519-9063-(E-Mail Removed)...
>I read that autoeventwireup="false" doesn't cause Page_Load to fire
> automatically and trying it out with a simple page this can be confirmed
> easily.
> However, I have a page with autoeventwireup="false" (that has a masterpage
> with autoeventwireup="false" as well) and Page_Load DOES fire in the page.
> How can this be ? Other pages using the same Master page does NOT fire
> Page_Load, unless I wire up the event manually.
> I'm totally confused. Moreover, this specific page fires Page_Load and all
> other events TWICE.



 
Reply With Quote
 
Kevin Jones
Guest
Posts: n/a
 
      25th Aug 2006
Carlo Marchesoni wrote:
> I read that autoeventwireup="false" doesn't cause Page_Load to fire
> automatically and trying it out with a simple page this can be confirmed
> easily.
> However, I have a page with autoeventwireup="false" (that has a masterpage
> with autoeventwireup="false" as well) and Page_Load DOES fire in the page.
> How can this be ? Other pages using the same Master page does NOT fire
> Page_Load, unless I wire up the event manually.
> I'm totally confused. Moreover, this specific page fires Page_Load and all
> other events TWICE.



Have you explicitly wired the event up? Is this an ASP 1.1 page or 2.0?

Kevin
 
Reply With Quote
 
=?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
Guest
Posts: n/a
 
      25th Aug 2006
It is an ASP 2.0 page (sorry, I should have mention it).
The strange thing that I DID NOT WIRE up the page load event - that's
exactly the thing I do not understand. autoeventwireup=false (even on the
masterpage), some usercontrols which also have autoeventwireup=false, no
wire-up and Page_Load is fired (even twice !!)

"Kevin Jones" wrote:

> Carlo Marchesoni wrote:
> > I read that autoeventwireup="false" doesn't cause Page_Load to fire
> > automatically and trying it out with a simple page this can be confirmed
> > easily.
> > However, I have a page with autoeventwireup="false" (that has a masterpage
> > with autoeventwireup="false" as well) and Page_Load DOES fire in the page.
> > How can this be ? Other pages using the same Master page does NOT fire
> > Page_Load, unless I wire up the event manually.
> > I'm totally confused. Moreover, this specific page fires Page_Load and all
> > other events TWICE.

>
>
> Have you explicitly wired the event up? Is this an ASP 1.1 page or 2.0?
>
> Kevin
>

 
Reply With Quote
 
=?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
Guest
Posts: n/a
 
      28th Aug 2006
you where right. on a GridView I had onload=Page_Load by mistake. since it
was a huge page it took me a while to find out why

"Marina Levit [MVP]" wrote:

> If this is the only page with the problem, then clearly something is
> different about this page. There must be something else going on there, some
> other difference, some other code running that is causing this on the one
> particular page, while all other pages are fine.
>
> You should carefully examine all the differences between this page and the
> others, as well as remove unecessary pieces of code to really boil it down
> to what the problem is.
>
> "Carlo Marchesoni" <(E-Mail Removed)> wrote in
> message news:C09CAE97-FC77-4519-9063-(E-Mail Removed)...
> >I read that autoeventwireup="false" doesn't cause Page_Load to fire
> > automatically and trying it out with a simple page this can be confirmed
> > easily.
> > However, I have a page with autoeventwireup="false" (that has a masterpage
> > with autoeventwireup="false" as well) and Page_Load DOES fire in the page.
> > How can this be ? Other pages using the same Master page does NOT fire
> > Page_Load, unless I wire up the event manually.
> > I'm totally confused. Moreover, this specific page fires Page_Load and all
> > other events TWICE.

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
Guest
Posts: n/a
 
      28th Aug 2006
you where right. on a GridView I had onload=Page_Load by mistake. since it
was a huge page it took me a while to find out why
thanks for your help

"Kevin Jones" wrote:

> Carlo Marchesoni wrote:
> > I read that autoeventwireup="false" doesn't cause Page_Load to fire
> > automatically and trying it out with a simple page this can be confirmed
> > easily.
> > However, I have a page with autoeventwireup="false" (that has a masterpage
> > with autoeventwireup="false" as well) and Page_Load DOES fire in the page.
> > How can this be ? Other pages using the same Master page does NOT fire
> > Page_Load, unless I wire up the event manually.
> > I'm totally confused. Moreover, this specific page fires Page_Load and all
> > other events TWICE.

>
>
> Have you explicitly wired the event up? Is this an ASP 1.1 page or 2.0?
>
> Kevin
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoEventWireup question Ken Microsoft ASP .NET 1 16th Feb 2007 11:26 AM
c# & autoeventwireup Microsoft ASP .NET 3 8th Dec 2006 01:48 AM
AutoEventWireup Daniel Groh Microsoft ASP .NET 2 11th May 2005 10:22 AM
AutoEventWireup.................Help thomson Microsoft ASP .NET 1 9th Dec 2004 05:29 AM
AutoEventWireup problem Quentin Huo Microsoft ASP .NET 1 31st Aug 2004 07:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:09 AM.