Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: WHY does EVENTS get called ? ? twice ? ? DISCUSSION


Message #1 by "Rohit Arora" <rohit_arora@i...> on Tue, 17 Dec 2002 16:34:35 +0530
Hie group many of us must have faced this problem. EVENTS GETTING CALLED
TWICE ??

now wht the solutions i get r like

1. Remove the Handles Mybase.Load from the Page_Load Subroutine. That would
solve your problem.

2. Some says set autoeventwireup = false (looks to be valid)

3.  some said in passing parameter use eventargs e instead of
system.eventargs

these r some of the solutions which i quoted.

Are there any EXPERT COMMENTS on this phenomena..like how n why it happens
??where we ppl go rong ?

Any help is appreciated.

Regards
Rohit

Message #2 by "Ken Schaefer" <ken@a...> on Thu, 19 Dec 2002 13:39:19 +1100
It really does depend on what your *code* looks like. Here is a general
explanation:
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=36662

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rohit Arora" <rohit_arora@i...>
Subject: [aspx] WHY does EVENTS get called ? ? twice ? ? DISCUSSION


: Hie group many of us must have faced this problem. EVENTS GETTING CALLED
: TWICE ??
:
: now wht the solutions i get r like
:
: 1. Remove the Handles Mybase.Load from the Page_Load Subroutine. That
would
: solve your problem.
:
: 2. Some says set autoeventwireup = false (looks to be valid)
:
: 3.  some said in passing parameter use eventargs e instead of
: system.eventargs
:
: these r some of the solutions which i quoted.
:
: Are there any EXPERT COMMENTS on this phenomena..like how n why it happens
: ??where we ppl go rong ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #3 by "Rohit Arora" <rohit_arora@i...> on Fri, 20 Dec 2002 10:11:30 +0530
Hi Ken yeah it does i totally agree but i don't think this to be a valid
answer.

System.EventArgs E is same as

using System;
EventAgrs E

wht do u say

regards
rohit



-----Original Message-----
From: Ken Schaefer [mailto:ken@a...]
Sent: Thursday, December 19, 2002 8:09 AM
To: ASP.NET
Subject: [aspx] Re: WHY does EVENTS get called ? ? twice ? ? DISCUSSION


It really does depend on what your *code* looks like. Here is a general
explanation:
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=36662

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rohit Arora" <rohit_arora@i...>
Subject: [aspx] WHY does EVENTS get called ? ? twice ? ? DISCUSSION


: Hie group many of us must have faced this problem. EVENTS GETTING CALLED
: TWICE ??
:
: now wht the solutions i get r like
:
: 1. Remove the Handles Mybase.Load from the Page_Load Subroutine. That
would
: solve your problem.
:
: 2. Some says set autoeventwireup = false (looks to be valid)
:
: 3.  some said in passing parameter use eventargs e instead of
: system.eventargs
:
: these r some of the solutions which i quoted.
:
: Are there any EXPERT COMMENTS on this phenomena..like how n why it happens
: ??where we ppl go rong ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




  Return to Index