I have a ButtonCommand in a grid C# page.
This code won't fire?
public void Button_Edit(Object sender, DataGridCommandEventArgs e)
{
// grab value and place in session.
Session["aPage"] = MmDataGrid1.SelectedItem.ToString();
}
In my html for the grid:
OnEditCommand="Button_Edit">
Html for the button:
{asp:ButtonColumn ButtonType="PushButton" DataTextField="ap_part" HeaderText="PTO Model" CommandName="Button_Edit">
{ItemStyle Wrap="False">{/ItemStyle>
{/asp:ButtonColumn>
What am I missing here? Also how do you scrape the Button Text which is a part # that I need to pass back for a data request?
TIA