简体   繁体   中英

Calling a vbscript function on ASP Classic

<script language=vbscript>
Public Function testfunc(a)
    MsgBox a
End Function
</Script>    
<%
Call testfunc("hi")
%>

I simplified the code because I am not sure if this would work at all. I am trying to use vbscript Function to open "Outlook.application". I need this to run client side but the asp part should run server side as it queries SQL with Windows.Authentication(IIS App Identity).

Is this possible at all or am I missing a point?

Think about this logically. Client side means that the code is executed by the browser after the page loads, server side means that it's executed on the server before the page loads. The server will ignore your client side code and your browser won't even see your server side code so it won't work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM