Why am I not getting my CommandName in the following event? (It comes in empty).
HTMLCode:Private Sub dgMaster_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgMaster.ItemCommand If e.CommandArgument = "ShowDetails" Then BindDL(2) End If End Sub
Code:<asp:ButtonColumn Text="Show Details" ButtonType="PushButton" DataTextField="id" HeaderText="Show Details" CommandName="ShowDetails" DataTextFormatString="Show Details"></asp:ButtonColumn>




Reply With Quote