Home All Groups Group Topic Archive Search About
Author
8 Sep 2006 1:57 PM
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

Author
8 Sep 2006 2:14 PM
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

Show quote
"Kuldeep" <kuldeep.vijayku***@hotmail.com> wrote in message
news:e8Fg8600GHA.4632@TK2MSFTNGP03.phx.gbl...
> 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
>
>
Author
8 Sep 2006 2:32 PM
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


Show quote
"Arsen V." <arsen@community.nospam> wrote in message
news:%23eS6aE10GHA.2516@TK2MSFTNGP06.phx.gbl...
> 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
>
> "Kuldeep" <kuldeep.vijayku***@hotmail.com> wrote in message
> news:e8Fg8600GHA.4632@TK2MSFTNGP03.phx.gbl...
>> 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
>>
>>
>
>
Author
9 Sep 2006 4:41 PM
Scott M.
Why would you want to use VBScript on the client?


Show quote
"Kuldeep" <kuldeep.vijayku***@hotmail.com> wrote in message
news:uRLpiO10GHA.1252@TK2MSFTNGP04.phx.gbl...
> 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
>
>
> "Arsen V." <arsen@community.nospam> wrote in message
> news:%23eS6aE10GHA.2516@TK2MSFTNGP06.phx.gbl...
>> 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
>>
>> "Kuldeep" <kuldeep.vijayku***@hotmail.com> wrote in message
>> news:e8Fg8600GHA.4632@TK2MSFTNGP03.phx.gbl...
>>> 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
>>>
>>>
>>
>>
>
>
Author
9 Sep 2006 5:00 PM
Mark Rae
"Kuldeep" <kuldeep.vijayku***@hotmail.com> wrote in message
news:uRLpiO10GHA.1252@TK2MSFTNGP04.phx.gbl...

> 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...?

AddThis Social Bookmark Button