Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Major DetailsView Issues
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
01132923
Message ID:
01134180
Vues:
12
No takers on this one?

>When using a template field the item command event is not fired at all. So I thought I will just use the default commandField. This works great except the generated insert and update buttons do not fire the item command event. The generated cancel buttons do fire the item command event. What am I doing wrong here?
>
>Here is the asp control, as you can see its very ordinary.
>
>    <asp:DetailsView ID="dvLinks" runat="server" AllowPaging="True" DataSourceID="sqlLinkData"
>        Height="50px" AutoGenerateRows="False" DataKeyNames="LinkID">
>        <Fields>
>            <asp:BoundField DataField="LinkID" HeaderText="ID" ReadOnly="True" />
>            <asp:BoundField DataField="LinkDesc" HeaderText="Description" />
>            <asp:BoundField DataField="LinkText" HeaderText="Text" />
>            <asp:BoundField DataField="LinkURL" HeaderText="URL" />
>            <asp:BoundField DataField="LinkRoles" HeaderText="Roles" />
>            <asp:CheckBoxField DataField="LinkNewWindow" HeaderText="Open in New Window" />
>            <asp:BoundField DataField="LinkOrder" HeaderText="Display Order" />
>            <asp:CommandField ButtonType="Button" ShowEditButton="True" ShowDeleteButton="True" ShowInsertButton="True" />
>        </Fields>
>    </asp:DetailsView>
>
>My humble thanks in advance,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform