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 Posthi subhankar02dey , download http://hotfile.com/dl/67535648/2c4215c/WebSite6.rar.html
prepare using visual studio 2010
Solving exactly what u want
thanks
Jump to PostYou can define TemplateField -> ItemTemplate -> define <asp:HyperLink> in your GridView.
<asp:TemplateField HeaderText="Click"> <ItemTemplate> <asp:HyperLink ID="link1" runat="server" ></asp:HyperLink> </ItemTemplate> </asp:TemplateField>
Now you just need to handle RawDataBound Event of GridView. In the event, you just need to find the hyperlink column by it's ID like below …
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.