Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > VBScript function with a button Click

Reply
Thread Tools

VBScript function with a button Click

 
 
Eric
Guest
Posts: n/a
 
      02-16-2005
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


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      02-16-2005
Try putting this in your code behind.
MyButton.Attributes.Add("OnClick","MyVBScriptFunct ion()")

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Eric" <> wrote in message
news:%...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fire both event button click and textchanged when button is click and text is changed Amy ASP .Net 0 06-01-2006 02:33 PM
image button click event fires before click event of button Purvi T ASP .Net 0 10-19-2004 06:19 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Building Controls 1 05-28-2004 06:23 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net 2 05-25-2004 11:45 PM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge ASP .Net Datagrid Control 0 05-25-2004 01:45 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57