Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to write events to labels?

How to write events to labels?

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Raheem MA
    wrote on last edited by
    #1

    i want the event for Label like Button_click event. How can i make it? pl let me know. thanks in advance.

    C S H M 4 Replies Last reply
    0
    • R Raheem MA

      i want the event for Label like Button_click event. How can i make it? pl let me know. thanks in advance.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Have you looked at either the LinkButton or HyperLink controls?


      Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

      R 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Have you looked at either the LinkButton or HyperLink controls?


        Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

        R Offline
        R Offline
        Raheem MA
        wrote on last edited by
        #3

        yeah, i have seen LinkButton & Hyperlink, they are undrelined, i want the control which is not underlined. once visit: www.microsoft.com in this,some controls r there without underline

        C 1 Reply Last reply
        0
        • R Raheem MA

          i want the event for Label like Button_click event. How can i make it? pl let me know. thanks in advance.

          S Offline
          S Offline
          Sun Rays
          wrote on last edited by
          #4

          u can use CSS for that linkbutton.. so the line will be go... text-decoration:none;

          Thanks, Sun Rays

          1 Reply Last reply
          0
          • R Raheem MA

            yeah, i have seen LinkButton & Hyperlink, they are undrelined, i want the control which is not underlined. once visit: www.microsoft.com in this,some controls r there without underline

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            Have you thought about changing the style of the object so that it isn't underlined? That's how the other controls work.


            Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

            R 1 Reply Last reply
            0
            • C Colin Angus Mackay

              Have you thought about changing the style of the object so that it isn't underlined? That's how the other controls work.


              Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

              R Offline
              R Offline
              Raheem MA
              wrote on last edited by
              #6

              ya that's wat i want, how to change the style of the object so that it isn't underlined? thanks,

              1 Reply Last reply
              0
              • R Raheem MA

                i want the event for Label like Button_click event. How can i make it? pl let me know. thanks in advance.

                H Offline
                H Offline
                hardikprogrammer
                wrote on last edited by
                #7

                Create lable web control i create with lable1 in page and place Label1.Attributes.Add("onclick","javascript:alert('this is done')"); in Page_Load event -- modified at 6:48 Friday 30th March, 2007

                1 Reply Last reply
                0
                • R Raheem MA

                  i want the event for Label like Button_click event. How can i make it? pl let me know. thanks in advance.

                  M Offline
                  M Offline
                  MinhajuddinK
                  wrote on last edited by
                  #8

                  You can write an event for Label_click by just double clicking the Label in the Visual Studio 2005 or whatever IDE you use. This creates an event handler for the specified Label click.

                  You don't have to be AFRAID!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups