Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2007, 11:18 AM
Authorized User
 
Join Date: Sep 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default CommandName attribute

Consider a GridView connected to an ObjectDataSource with the DeleteMethod attribute set. Within the GridView is an ImageButton that has a CommandName attribute set to Delete. Now ordinarily when you click a button in a GridView the OnRowCommand event fires but the CommandName Delete hasn't been catered for in the event handler. So can I assume that as the CommandName is called Delete that the GridView will know that when the button is clicked it should fire the method specified in the DeleteMethod attribute in the ObjectDataSource?

Thanks

 
Old June 4th, 2007, 11:23 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

from memory, this is a long standing bug (delete with an imagebutton). there area few workarounds and i did investigate this at some stage a while back.

of course, you may not be referring to the 'double' event firing bug in which case, ignore this reply :)

jimi

http://www.jamestollan.com
 
Old June 4th, 2007, 11:28 AM
Authorized User
 
Join Date: Sep 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Jimi,

The reason I ask the question is because the author does this on page 252 of the book. The only explanation I can think of as to how this works is the one in my opening post but I'm just guessing.

Crazy






Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace an attribute with another attribute georgemeng XSLT 8 June 10th, 2008 11:04 AM
attribute Eddy de Boer XSLT 5 June 16th, 2006 07:12 AM
all attribute kfir XML 1 May 8th, 2006 09:34 AM
Access to attribute values from class of attribute jacob C# 1 October 28th, 2005 01:11 PM
get attribute value... clayman58 XSLT 1 August 9th, 2005 04:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.