Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView

Reply
Thread Tools

GridView

 
 
Samuel
Guest
Posts: n/a
 
      08-12-2007
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>


--
Samuel Shulman
SBS Technologies Ltd
07824 812518
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      08-12-2007
Try using a commandfield column instead of the templatefield with a
linkbutton.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


"Samuel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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>

--
Samuel Shulman
SBS Technologies Ltd
07824 812518


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Gridview inside Gridview little problems... Carlos Albert ASP .Net 1 12-06-2005 05:31 PM
GridView in a GridView Carlos Albert ASP .Net 2 12-06-2005 12:42 PM
GridView in a GridView Nalaka ASP .Net 6 12-05-2005 05:48 PM
Gridview with combobox whose data is dependent on field in gridview wallermj@hotmail.com ASP .Net 3 11-21-2005 05:34 PM



Advertisments