2
Answers

Asp.net rowcommand event

Mayur  Gujrathi

Mayur Gujrathi

13y
3.1k
1
I am taking template fielt as follows
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkAssignButton" runat="server"

CommandName="Assign"

Text="Take" Visible="true">

</asp:LinkButton>

</ItemTemplate>
</asp:TemplateField>     

and on row command event how to get gridview whole row value of all cells in it in different variable
//in code behind rowcommand event
 Dim _NameOfCommand As String = e.CommandName

        If _NameOfCommand = "Assign" Then

          
            Response.Write("done")
        End If
Answers (2)