Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7912
  • Last Modified:

How to call a VbScript Function using classic ASP

How do you call a VBScript function in Classic ASP.  I want to call the following function.  Also, can you mix VBScript with javascript within the same .asp program?  I am assuming you can as long you separate and define language script <script language="javascript"> or <script language="VBScript">.

<%
  xmldata = Base64EncodeBinary(oXML.xml)    ???? How do you call a VBScript function?
  oXML.save strXMLFile  
  response.redirect(strFilename)  
%>


Function Base64EncodeBinary(inData)
  Base64EncodeBinary = Base64Encode(BinaryToString(inData))
End Function
0
Hojoformo
Asked:
Hojoformo
1 Solution
 
arvanhalleorgCommented:
Dim result
result = Base64EncodeBinary(whateverdata)

or

Call Base64EncodeBinary(whateverdata)

as for the javascript/asp mix

function testfunc(){
<!--
     <%for x = 0 to intCount%>
            document.getElementById("txt<%=x%>").value=<%=x%>;
     <%next%>
//-->
}

Hope that helps
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now