mhsueh001 Posted November 17, 2004 Posted November 17, 2004 Is there a way to run both a vbscript sub and a codebehind method with only one button click? I've got a button that needs to runs some client side code, then run some server side code. Any help would be appreciated. Quote
Cassio Posted November 18, 2004 Posted November 18, 2004 Yes. On the code behind, on the page load event you can add a attribute to the button. btn.Attributes.Add("onclick", "MyFunctionName();"); The vcscript function will run before the postback. Quote Stream of Consciousness (My blog)
mhsueh001 Posted November 22, 2004 Author Posted November 22, 2004 Yes. On the code behind, on the page load event you can add a attribute to the button. btn.Attributes.Add("onclick", "MyFunctionName();"); The vcscript function will run before the postback. Nope, that didn't work I'm already using the Onclick event to execute the vbscript routine. Also I'm using a HTMLbutton because the script I'm trying to run is for an activex control. thanks though. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.