GridView Question

S

Samuel Shulman

I have the following code or a delete button in the GridView Control and the
RowDeleteing event is not raised

Can anyone sugget hat is wrong with the code?

<asp:TemplateField>

<ItemTemplate>

<asp:LinkButton ID="delete" Runat="server"

OnClientClick="return confirm('Are you sure you want to delete this
record?');"

CommandName="Delete" Text="Delete"/>

</ItemTemplate>

</asp:TemplateField>
 

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

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top