Mayur  Gujrathi

Mayur Gujrathi

  • 378
  • 4.1k
  • 1m

Asp.net rowcommand event

May 11 2011 6:14 AM
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)