I have created a gridview with an arraylist that contains my objects of books.
Web Form Code:
Books objBooks = new Books();
ArrayList bookList = objBooks.getBooks();
GridView1.Width = 500;
GridView1.DataSource = bookList;
GridView1.DataBind();
Books Code:
objBook = new Book(isbn, author, titles, publishers);
(values retrieved from the database)
bookList.Add(objBook);
where getBooks is:
public ArrayList getBooks()
{
return bookList;
}
I want to make my titles column (from the book object) an hyperlink, so that when the user clicks on one of the titles, it will go to the comments page(a table of comments that i am currently working on)
How can I create an hyperlink and keep track of which one is clicked?
thank for your help
Start Free Trial