Wrox Programmer Forums
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases 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 December 7th, 2007, 07:57 PM
Registered User
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch8 - TIO#4 (Other List Controls)

The instructions to add the button (to the form) instruct to populate the property "OnClientClick" with "Button1_Click". The code generated by the UI includes the OnClientClick, which apparently doesn't fire the server side event to display the selected entry. I found that the sample code downloaded here (for the book) doesn't have "OnClientClick" property, but does have the "OnClick" event

I have been 'assuming' that following the instructions given in these TIO's would generate the EXACT same code as the code included in the downloads...alas not :/

If I do not manually add the "OnClick" event and ignore/delete the "OnClientClick", then the script never actually fires the response.writes as shown.

Please advise.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Try it Out List Controls phage BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 September 15th, 2008 02:15 PM
ASP List Controls rsearing ASP.NET 2.0 Basics 0 September 25th, 2006 09:44 PM
Data Binding to List Controls dejawoo ASP.NET 1.0 and 1.1 Professional 2 July 3rd, 2004 10:54 PM
list of all controls within a .frm file arvindkrishnan VB Components 4 February 13th, 2004 05:48 PM
Visible property of controls in data list acko ASP.NET 1.x and 2.0 Application Design 1 December 9th, 2003 10:41 AM

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