Solved

How to call a VbScript Function using classic ASP

Posted on 2006-10-23
1
7,868 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
1 Comment
 
LVL 2

Accepted Solution

by:
arvanhalleorg earned 500 total points
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now