E
Edwin Knoppert
This grid used a template having a button (Button1).
The del button ran a javascript to ask y/n.
Then it passed the GridView1_RowCommand() where i was able to determine the
record id (eval)
The GridView1_RowCommand() call is no longer executed ???
<asp:GridView ID="GridView1" runat="server"
DataSourceID="AccessDataSource1" AllowPaging="True" CellPadding="4"
Font-Names="Courier New" Font-Size="9pt" ForeColor="#333333"
GridLines="None" EnableViewState="False" >
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="false"
CommandName="Button_Delete" OnClientClick="DeleteRecord();"
Text="Del..." CommandArgument='<%# Eval("ID") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField ButtonType="Button" Text="Postcode" InsertVisible="False"
CommandName="Button_PostCode" />
</Columns>
The del button ran a javascript to ask y/n.
Then it passed the GridView1_RowCommand() where i was able to determine the
record id (eval)
The GridView1_RowCommand() call is no longer executed ???
<asp:GridView ID="GridView1" runat="server"
DataSourceID="AccessDataSource1" AllowPaging="True" CellPadding="4"
Font-Names="Courier New" Font-Size="9pt" ForeColor="#333333"
GridLines="None" EnableViewState="False" >
<Columns>
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:Button ID="Button1" runat="server" CausesValidation="false"
CommandName="Button_Delete" OnClientClick="DeleteRecord();"
Text="Del..." CommandArgument='<%# Eval("ID") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField ButtonType="Button" Text="Postcode" InsertVisible="False"
CommandName="Button_PostCode" />
</Columns>