Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a gridview that is showing the data from database. Gridview has link button for view, edit and delete. i want when i click on view button then it will move on new page with complete detail.
Please suggest me.


Thanks in advance.
Posted

1 solution

 
Share this answer
 
Comments
SURBHI TYAGI 19-Nov-12 4:52am    
in this given example there is link of ID but i have a distinct link button named "View" and i am stuck here that how to fetch data based on id.please help.
tanweer 19-Nov-12 4:58am    
add your ID as
<asp:LinkButton ID="Image1" runat="Server" CommandName="cmdView" CommandArgument="<%# Eval("YourID") %>" runat="server" />
SURBHI TYAGI 19-Nov-12 5:18am    
Thanks alot dear!!
tanweer 19-Nov-12 5:35am    
if this solves your issue please mark as answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900