This worked in the beta, but no longer

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top