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
|