Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: ??? FUNCTIONS ARE GETTING CALLED TWICE ????


Message #1 by "Rohit Arora" <rohit_arora@i...> on Thu, 12 Dec 2002 09:43:07 +0530
hie group,

Can anyone tell me why my fuctions starting from page_load, initialize, user
defined are getting called twice. And what to do to make them correct.

Regards,
Rohit

Message #2 by "Peter Lanoie" <planoie@n...> on Thu, 12 Dec 2002 11:49:43 -0500
I had this exact problem.  I was seeing repeater executions of those
functions within a User Control on an ASPX page.  My resolution was to
change the autoeventwireup in the page (in my case it was the .ASCX file).
Set it to false and see if that corrects it.  I'm not really clear on what
"AutoEventWireup" is for, or what it does but setting to false fixed my
problem.

	AutoEventWireup="false"

peter

-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Wednesday, December 11, 2002 23:13
To: ASP.NET
Subject: [aspx] ??? FUNCTIONS ARE GETTING CALLED TWICE ????


hie group,

Can anyone tell me why my fuctions starting from page_load, initialize, user
defined are getting called twice. And what to do to make them correct.

Regards,
Rohit



Message #3 by "Pratap Ladhani" <pratapl@b...> on Fri, 13 Dec 2002 10:15:16 +0530
Remove the Handles Mybase.Load from the Page_Load Subroutine. That would
solve your problem.

Pratap Ladhani

-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Thursday, December 12, 2002 9:43 AM
To: ASP.NET
Subject: [aspx] ??? FUNCTIONS ARE GETTING CALLED TWICE ????


hie group,

Can anyone tell me why my fuctions starting from page_load, initialize, user
defined are getting called twice. And what to do to make them correct.

Regards,
Rohit




  Return to Index