Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: how to use vbscript in .net code behind file

Thread Tools

Re: how to use vbscript in .net code behind file

S. Justin Gengo
Posts: n/a

If what you really mean is: "Can I add vbscript to the html file that sends to the client from the code behind file?"

Then the answer is yes.

You could attach the script to the page with the
Page.RegisterClientScriptBlock method.

You would then attach a call to the vbscript from a client object event (say
a button click) by adding the attribute to the button:
Button.Attributes.Add("onClick", "MyVbScriptFunction()")

I hope this helps.

S. Justin Gengo, MCP
Web Developer / Programmer

Free Code Library At:

"Out of chaos comes order."

"Jenet" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Is this possible? Is there any source code/link for reference?
> Thanks.

Reply With Quote

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
Non-code behind to code behind John ASP .Net 2 02-19-2007 07:08 PM
launch an exe file from a web page...I use jsp and i cannot use VBScript... dinamointer Javascript 5 05-12-2006 05:46 PM
How to change VBScript to VB code behind file Sean ASP .Net 5 08-13-2003 04:29 PM
Re: how to use vbscript in .net code behind file Bill Priess ASP .Net 0 07-17-2003 04:19 PM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM