How to identify a control that fired a event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
The "sender" parameter does this.

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

Patrice
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top