Mixing ASP and VBScript

Results 1 to 2 of 2

Thread: Mixing ASP and VBScript

  1. #1
    Join Date
    Dec 1969

    Default Mixing ASP and VBScript

    Is there a way that I can access values or functions defined in my ASP code from my SCRIPT code? For example:<BR><BR>&#060;%<BR>MyValue=10<BR><BR>Priva te Function DoThis()<BR>response.write "I am doing this"<BR>end function<BR>%&#062;<BR><BR>&#060;script language=vbscript&#062;<BR>For x = 1 to MyValue<BR>DoThis()<BR>next<BR>&#060;/script&#062;<BR><BR>In the above (useless) example, MyValue would not be recognized by the VBscript, nor could DoThis() be called by the Vbscript. Is this a limitation? Or is there some way I can define or reference these values/functions so that ASP and VBScript can share and interact.<BR><BR>Please respond to toddhd@hotmail.com if possible - thanks!<BR>

  2. #2
    alpoor reddy Guest

    Default RE: Mixing ASP and VBScript

    Try like this<BR><BR>for i =1 to &#060;%=Myvalue%&#062;<BR><BR>Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts