samsmithnz Posted January 24, 2004 Posted January 24, 2004 How can I call some client side javascript using a server-side button? I'd like to use the style and formatiing of the server-side button over the INPUT tag. Quote Thanks Sam http://www.samsmith.co.nz
samsmithnz Posted January 24, 2004 Author Posted January 24, 2004 control.Attributes.Add ??? Quote Thanks Sam http://www.samsmith.co.nz
bungpeng Posted January 25, 2004 Posted January 25, 2004 You never use this before? YourControlID.Attributes.Add("onClick","JavascriptFunctionName()")? Quote
samsmithnz Posted January 25, 2004 Author Posted January 25, 2004 no i haven't. I've bee reading it about it since my last post... how does it know to use, for example, the onkeyup event and what to do with it?? Quote Thanks Sam http://www.samsmith.co.nz
Moderators Robby Posted January 25, 2004 Moderators Posted January 25, 2004 Use the Attributes.Add() on one of your controls then look at the source code of the HTML code in IE. Quote Visit...Bassic Software
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.