View Single Post
  #1 (permalink)  
Old December 7th, 2007, 07:57 PM
jecii jecii is offline
Registered User
Join Date: Dec 2007
Location: , , USA.
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.