p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 2.0 and Databases (http://p2p.wrox.com/forumdisplay.php?f=276)
-   -   Ch8 - TIO#4 (Other List Controls) (http://p2p.wrox.com/showthread.php?t=64421)

jecii December 7th, 2007 07:57 PM

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.
Thanks!
JECII


All times are GMT -4. The time now is 05:14 PM.

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