RowCommand event for a link

Posted by Yogitha under C# on 7/23/2012 | Points: 10 | Views : 990 | Status : [Member] | Replies : 2
Hi,

I need to know the code for RowCommand Event for the following situation. Now there is a gridview in my project with five to six columns. And the Name column is a link. Now when we click on the Name(in any row) i should get all other details in textboxes in another different page. Could you please help me.

Thanks,
Yogitha




Responses

Posted by: Ranjeet_8 on: 7/23/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Get Record Using Query String on another page.
try this
    <ItemTemplate>

<a href="Details.aspx?UniqueID=<%#Eval("Unique_ID_Column") %>" target="_self" ><%#Eval("Name_Column")%></a>
</ItemTemplate>


Yogitha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Yogitha on: 7/26/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks for your help Ranjeet_8

Yogitha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response