Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to call a VbScript Function using classic ASP

Posted on 2006-10-23
1
Medium Priority
?
7,903 Views
Last Modified: 2009-12-07
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
Comment
Question by:Hojoformo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
arvanhalleorg earned 2000 total points
ID: 17789863
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question