I have a gridview in which i populate data about books in a library.
There is a column as 'Book Name' in the gridview.
I want to make this column as linkbutton.
And whenever I will click the linkbuttons, the details of the corresponding book will be displayed in another page.
How can I do this.
Pls help.
subhankar02dey 0 Light Poster
Recommended Answers
Jump to PostIn that case I have to options for you:
1: Show Select Button and let user click that instead of your bookname. Then in the GV SelectedIndexChanged event, you can redirect the user to the page of your choice and pass appropriate bookid as querystring parameter.
2: You extend the …
Jump to PostHi ,
Pls add a hyperlink to your gridview and bind the ID like this..
<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"BookName")%>' NavigateUrl='<%# "~/BookView.aspx?id=" + DataBinder.Eval(Container.DataItem,"BookID")%>' ID="Hyperlink1" />.
hope your reply
All 7 Replies
mohammed yaghi 0 Newbie Poster
rohand 1 Posting Whiz in Training
subhankar02dey 0 Light Poster
rohand 1 Posting Whiz in Training
subhankar02dey 0 Light Poster
guru_sarkar 0 Junior Poster in Training

siju kuriakose
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.