Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Major DetailsView Issues
Message
From
29/06/2006 17:42:56
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Major DetailsView Issues
Miscellaneous
Thread ID:
01132923
Message ID:
01132923
Views:
61
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

Next
Reply
Map
View

Click here to load this message in the networking platform