How to Read ID and Value of dynamic buttons on submit button click
-
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
-
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
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!