How to identify a control that fired a event

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
 
P

Patrice

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top