label web control click event

Discussion in 'ASP .Net' started by semesm22, Dec 14, 2005.

  1. semesm22

    semesm22 Guest

    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

    --
    Sent via .NET Newsgroups
    http://www.dotnetnewsgroups.com
    semesm22, Dec 14, 2005
    #1
    1. Advertising

  2. 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

    "semesm22" wrote:

    > 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
    >
    > --
    > Sent via .NET Newsgroups
    > http://www.dotnetnewsgroups.com
    >
    =?Utf-8?B?U3VuZGFyLms=?=, Dec 14, 2005
    #2
    1. Advertising

  3. semesm22

    semesm22 Guest

    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

    --
    Sent via .NET Newsgroups
    http://www.dotnetnewsgroups.com
    semesm22, Dec 14, 2005
    #3
    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. Purvi T
    Replies:
    0
    Views:
    831
    Purvi T
    Oct 19, 2004
  2. Steve C. Orr [MVP, MCSD]
    Replies:
    0
    Views:
    583
    Steve C. Orr [MVP, MCSD]
    Apr 13, 2005
  3. Shane Bauer
    Replies:
    0
    Views:
    4,787
    Shane Bauer
    Apr 13, 2005
  4. Chu
    Replies:
    2
    Views:
    905
    Winista
    Apr 10, 2006
  5. Knut Krueger
    Replies:
    8
    Views:
    265
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page