Getting the value on button

georgepatotk

Contributor
Joined
Mar 1, 2004
Messages
432
Location
Malaysia
Code:
<asp:DataGrid id=dgOwn>

<asp:ButtonColumn HeaderText="Dir" DataTextField="Dir" commandname="btn"/>

</asp:DataGrid>


Private Sub dgOwn_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgOwn.ItemCommand

        If e.CommandName = "btnShowFiles" Then
             'I want to get the value/text display on the btn over here
        End If

End Sub
Anyone can tell me please
 
Back
Top