DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 12 Aug 2007 13:41:42 +0100,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Samuel
          2    Eliyahu Goldin


GridView   
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
Date:Sun, 12 Aug 2007 13:41:42 +0100   Author:  

Re: GridView   
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"  wrote in message
news:OQysh4N3HHA.1204@TK2MSFTNGP03.phx.gbl...
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
Date:Sun, 12 Aug 2007 21:13:02 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us