VBScript function with a button Click

E

Eric

Hi,

I would to use a client VBScript function when I click on a button control.
How can I link this event to the function ? I read something about
AddAttributesToRender, but I do not want to create a new button class. Is
there another way ?

Regards.

Eric
 
S

Steve C. Orr [MVP, MCSD]

Try putting this in your code behind.
MyButton.Attributes.Add("OnClick","MyVBScriptFunction()")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top