Advertisement

03.22.2008 at 05:54PM PDT, ID: 23262147
[x]
Attachment Details

How do I run a vbscript function inside a page that has the language set to VB

Asked by georgehayes3 in Programming for ASP.NET

Tags: ASP .net, IE6 IE7

basically I have a datadriven page that the first line is this:

<%@ LANGUAGE=VB %>

I have a protective script that i use for security on each page looks like this:

<%@ LANGUAGE=VBscript %>
<%
Set asplObj=Server.CreateObject("ASPL.Login5")
asplObj.Protect
Set asplObj=Nothing
%>

I have to insert that at the top of every page to protect it, but whenever i put it on a page that requires the language VB it throws errors.  Shouldnt vbscript run on a page with VB language declared anyway?  Can i run vbscript then switch to vb in a single page?Start Free Trial
 
 
[+][-]03.23.2008 at 05:07PM PDT, ID: 21191190

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03.24.2008 at 06:04PM PDT, ID: 21198804

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: ASP .net, IE6 IE7
Sign Up Now!
Solution Provided By: georgehayes3
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628