Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp passing information into vbscript... urgent

Status
Not open for further replies.

audface

Programmer
Sep 27, 2002
14
MY
How do I pass parameters or variables from asp into vbscript? for example, the code below does not run as expected

<%

call myproc(a,b)

%>
<script language=&quot;VB\Script&quot;>
function(a,b)
msgbox a
msgbox b
end function
</script>



the message boxes displays blank. I hope someone could guide me. Thanks in advance.
 
vbscript function that u have writeen will not be executed by the server therefore this
<%

call myproc(a,b)

%>
will show an error.

but u can insert values into the vbscript
<script language=&quot;VB\Script&quot;>
function(<%=a%>,<%=b%>)
msgbox a
msgbox b
end function
</script> Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top