Dynamically create buttons that call asp.net function
Can anyone give me a clue about how to dynamically create buttons that will call a function in asp.net.
The purpose is that I have this table of records and would like the user to be able to just click a button and have it do something. Whether it be email the user on the current record or delete the record.
I have tried to asp asp buttons and html buttons and they both don't seem to do anything. I had the "mailto:[email protected]" in the button but it did not do anything.
Any help would be appreciated.
Thanks.
Re: Dynamically create buttons that call asp.net function
Does that mean a single button for each record? Or is it going to be a single button that does something depending upon the record retrieved from the database?
Re: Dynamically create buttons that call asp.net function
a single button for each record.
Would i have to force the page to postback with actions in the ispostback on page_load passing a variable in querystring with which I would then do some action?