Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ButtonCommand in a datagrid
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
ButtonCommand in a datagrid
Divers
Thread ID:
00777282
Message ID:
00777282
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform