|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB Script FunctionHi 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 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 > > 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 >> >> > > 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 >>> >>> >> >> > > "Kuldeep" <kuldeep.vijayku***@hotmail.com> wrote in message ??? But that would try to run VBScript client-side!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 You can't possibly mean that, surely...? |
|||||||||||||||||||||||