After several hours of hair pulling, finally got it working. It was a
combination of things. It would only work if I did NOT use an inline
script in the html button. In the end, for those new users who may have
a similar problem, I did the following:
(1) Added the onclick script in the <head> of the html.
(2) Used an asp:button (vs. html) and put the following code in the page
load sub (if not postback):
buttonname.attributes.add("onclick", "name_of_script();return false;")
the return false will remove/disable the "submit" function that asp.net
adds in runtime.
Kathy
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!