Member_2_5230414
asked on
Adding dynamic button
Hi,
I currently loop through a dataset and set out a table as follows:
I would like to add a button to the table with the value on Thematch -> this way i can add the match to my database to save later
The code would look something like this
How can i do this?
I currently loop through a dataset and set out a table as follows:
For Each dv2 As DataRowView In DvTheData2
test1.Text += "<tr><td>" & dv2.Row.Item("Thematch") & "</td>" & colourcodeit(dv2.Row.Item("HAG"), "") & colourcodeit(dv2.Row.Item("AAG"), "") & colourcodeit(dv2.Row.Item("VAG"), "") & "</tr>"
Next
I would like to add a button to the table with the value on Thematch -> this way i can add the match to my database to save later
The code would look something like this
For Each dv2 As DataRowView In DvTheData2
test1.Text += "<tr><td>" & dv2.Row.Item("Thematch") & "</td>" & colourcodeit(dv2.Row.Item("HAG"), "") & colourcodeit(dv2.Row.Item("AAG"), "") & colourcodeit(dv2.Row.Item("VAG"), "") & "<td>THEBUTTONGOESHERE</td></tr>"
Next
How can i do this?
Do you want it to be a html input control and then handle it using Javascript?
ASKER
Thats not something i have looked into... how would that work?
ASKER
basicly its just button click....add row to database
them if button is clicked again remove from database
them if button is clicked again remove from database
Where is this html rendered to?
ASKER
i label on the from page
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.