Advertisement

05.12.2008 at 06:04PM PDT, ID: 23396423
[x]
Attachment Details

c# hyperlink

Asked by asif07 in C# Programming Language, SQL Server 2008

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 helpStart Free Trial
[+][-]05.12.2008 at 06:17PM PDT, ID: 21551619

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 06:42PM PDT, ID: 21551692

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 07:03PM PDT, ID: 21551767

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, SQL Server 2008
Sign Up Now!
Solution Provided By: liqiug
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628