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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to Read ID and Value of dynamic buttons on submit button click

How to Read ID and Value of dynamic buttons on submit button click

Scheduled Pinned Locked Moved ASP.NET
databasesysadmintutorial
2 Posts 2 Posters 3 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.
  • M Offline
    M Offline
    Mansi Arora
    wrote on last edited by
    #1

    I have created a dynamic table with dynamic buttons for company roster according to the no of days in a month, like a company has 5 employees in month of june, i.e table has 150 buttons and on click of every button text appears "OFF" and i want to read that button ID and Value on submit at server side to save button id in database

    S 1 Reply Last reply
    0
    • M Mansi Arora

      I have created a dynamic table with dynamic buttons for company roster according to the no of days in a month, like a company has 5 employees in month of june, i.e table has 150 buttons and on click of every button text appears "OFF" and i want to read that button ID and Value on submit at server side to save button id in database

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Looks like, this is the third time you are posting this question. What have tried so far? Q1:http://www.codeproject.com/Questions/92675/Read-Dynamic-Button-Id-and-Value.aspx[^] Q2:http://www.codeproject.com/Questions/93045/Read-Dynamic-Button-Id-and-Value.aspx[^] Once again, when you create those buttons, add the button click event handler to them. Once you add the click event, (which can be generic event for all 150 buttons!) just check the 'sender' object, and you will be able to retrieve the ID using it. Try it!

      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