VB Script Function

K

Kuldeep

Hi All,

I have a VB Script function in a separate vbscript file.
How do I call this function in such a way that I can pass the necessary
arguments into it and fetch the return value.

Please Help

Regards,
Kuldeep
 
A

Arsen V.

Hi Kuldeep,

I am not sure if this is relevant to .NET, it is more of ClassicASP
question.

But, you can include the VB Script file using the

<!--#include file="file_with_function.asp"-->

command and then call the function as if it was part of the page.

-AV
 
K

Kuldeep

Thanks for the response Arsen.
I am trying to call the vbscript through my C#.Net code.
I am actually using the following:

Page.ClientScript.RegisterStartupScript and
Page.ClientScript.RegisterClientScriptInclude

can you give me some examples on how to use these two above given functions?

Thanks,
Kuldeep
 
M

Mark Rae

Thanks for the response Arsen.
I am trying to call the vbscript through my C#.Net code.
I am actually using the following:

Page.ClientScript.RegisterStartupScript and
Page.ClientScript.RegisterClientScriptInclude

??? But that would try to run VBScript client-side!

You can't possibly mean that, surely...?
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top