Author: ruthlesset | Posted on: 7/16/2010 6:18:31 PM | Views : 436

I am trying to learn C# web programming. I am trying stuck and am unable to proceed for 2 days.
I have a simple table with three columns (ISBN, Book Name and Delete).  The last column has a delete button. When the delete button is clicked, the book is removed from the session. The books are stored as objects within the session.
The trouble I am having is when a user clicks on the "Delete" button, how do I pass the ISBN value to the onclick method. Can someone kindly tell me the best way to achieve this?
I tried doing it below but am going nowhere.

<asp:Button runat="server" ID="Remove" Text="Remove" ToolTip="Remove Book" onclick="remove_book" /> protected void remove_item(object sender, EventArgs e) { Button b = (Button)sender; string isbn = b.id; }


...

Go to the complete details ...