How to identify a control that fired a event

Discussion in 'ASP .Net' started by =?Utf-8?B?TG9uZ1J1bm5lcg==?=, Apr 25, 2005.

  1. Hi, I am a beginner on the ASP.NET.

    I created some custom controls (Control Library) and used in a WebForm
    (ASPX), I found that when a control fired a event in a ASPX, all the other
    controls will be execute the Render method. Rendering the unneccessary things
    will make the result incorrect and heavy workload.
    My question is how can i know whether the events is fired by itself or other
    control in the Render method?

    LongRunner
     
    =?Utf-8?B?TG9uZ1J1bm5lcg==?=, Apr 25, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?TG9uZ1J1bm5lcg==?=

    Patrice Guest

    The "sender" parameter does this.

    Another option would to perhaps trigger this event at some other time when
    all is ready ?

    Patrice


    --

    "LongRunner" <> a écrit dans le message
    de news:...
    > Hi, I am a beginner on the ASP.NET.
    >
    > I created some custom controls (Control Library) and used in a WebForm
    > (ASPX), I found that when a control fired a event in a ASPX, all the

    other
    > controls will be execute the Render method. Rendering the unneccessary

    things
    > will make the result incorrect and heavy workload.
    > My question is how can i know whether the events is fired by itself or

    other
    > control in the Render method?
    >
    > LongRunner
     
    Patrice, Apr 25, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jorge
    Replies:
    2
    Views:
    1,289
    jorge
    May 26, 2004
  2. Fabrizio
    Replies:
    5
    Views:
    251
    Alessandro Zifiglio
    Feb 24, 2004
  3. jorge
    Replies:
    1
    Views:
    422
    Teemu Keiski
    May 28, 2004
  4. jorge
    Replies:
    0
    Views:
    333
    jorge
    May 25, 2004
  5. jorge
    Replies:
    0
    Views:
    273
    jorge
    May 25, 2004
Loading...

Share This Page