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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP/VB_Script Quickie

Status
Not open for further replies.

vatik

Technical User
Jul 13, 2001
20
0
0
US
Is it possible to call asp sub functions from a vb script?
If so i'm having trouble

ie.

<Script language=&quot;vbscript&quot;>

Test() ' an asp sub function that has database calls in it

</script>
 


vatik;

No problem as long as you define it as a function.
Fengshui1998

<Script language=&quot;vbscript&quot;>

Test() ' an asp sub function that has database calls in it

Function Test()
your code here
End Function

</script>
 
First you must specify if it is server-side or client-side VBscript. Server-side VBscript can call server-side sub-routines and functions. Client-side VBscript can call client-side sub-routines or functions. You can't mix and match though. Wushutwist
 
Hi,

I'm not sure FengShui' code will work: you better define the function before you call it!

Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top