adding button on runtime with values

  • Thread starter Thread starter kollasaeta
  • Start date Start date
K

kollasaeta

Hi
I have this table which I create on runtime with some rows from my
database.
What I want to do is when I create the table I want to create a button/
linkbutton/link or something beside each entry from the database and
when the user clicks on this button i want to remove the database
entry from the table.

So I guess my question is, how do I create a button with an onClick
event on runtime that knows what row it belong to.. So i can put in my
code that when this specific button gets clicked that I want to delete
this specific row which this button belongs to?
I am using asp.net and C#.

If you understand any of this mumbling, please help..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top