label web control click event

S

semesm22

is there any way that i can create a click event for a label that is
part of the web control library....i want to use a label in a user
control, and when the user clicks one the user control i wanna change
the color of the label to red for example....i tried importing
system.web.ui.webcontrol.label but there is no click event for the
label, so is there a way i can create it

thanks
sam
 
G

Guest

derive from the existing labelcontrol to create your control and implement a
ipostback handler and expose a event on label click

lable is span in html so just check outwith the span clientside event to
which you want to map the postback
 
S

semesm22

derive from the existing labelcontrol to create your control and
implement a
ipostback handler and expose a event on label click


the problem is that i am creating the label inside a user control,
therefor the click event needs to be coded in the user control, cause
the form will only see a user control, and not a label...that correct,
right?

thanks
sam
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top