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. address of button

address of button

Scheduled Pinned Locked Moved ASP.NET
question
3 Posts 2 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.
  • V Offline
    V Offline
    vengaqua
    wrote on last edited by
    #1

    I am adding three buttons for every new question. suppose i have two questions then i have two pairs of three buttons all having different ids. If i click the first button then i want the id of this button and if i click the second button i want his id.And i have this function which i am calling in the form load event.In this function i am adding controls at runtime.Is this ok.It is very urgent.

    Mohinder Singh

    N 1 Reply Last reply
    0
    • V vengaqua

      I am adding three buttons for every new question. suppose i have two questions then i have two pairs of three buttons all having different ids. If i click the first button then i want the id of this button and if i click the second button i want his id.And i have this function which i am calling in the form load event.In this function i am adding controls at runtime.Is this ok.It is very urgent.

      Mohinder Singh

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      vengaqua wrote:

      f i click the first button then i want the id of this button and if i click the second button i want his id

      You can use button.clientId

      vengaqua wrote:

      And i have this function which i am calling in the form load event

      Which function ? I m not seeing anything :confused:


      printf("Navaneeth!!") www.w3hearts.com

      V 1 Reply Last reply
      0
      • N N a v a n e e t h

        vengaqua wrote:

        f i click the first button then i want the id of this button and if i click the second button i want his id

        You can use button.clientId

        vengaqua wrote:

        And i have this function which i am calling in the form load event

        Which function ? I m not seeing anything :confused:


        printf("Navaneeth!!") www.w3hearts.com

        V Offline
        V Offline
        vengaqua
        wrote on last edited by
        #3

        i have a function that adds the controls at runtime and i generate their ids at that time.And i am calling this function in the form load event. outside that function i dont have access to the buttons. Now tell me how to do it.i want the id of the button i click.I need this thing very urgently.Please hel me dear.

        Mohinder Singh

        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