Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: ASP.NET / VBScript

Reply
Thread Tools

Re: ASP.NET / VBScript

 
 
Jim Baker
Guest
Posts: n/a
 
      10-14-2003
Actually, I had modified the header to include some VBScript and at the top
of the header it now has:

<%@LANGUAGE="VBSCRIPT"%>

I am completely clueless on classic ASP, so I don't know if this is running
actual ASP VB or just VBScript or what the difference(s) would be. It's
someone elses code that basically reads from an access database and writes
out some HTML based on that. Any ideas on how I can get around it?

Thanks,
James


"M" <> wrote in message
news:ehJib.755658$YN5.711949@sccrnsc01...
> Your include file has an <@ tag in it. You cannot have nested <@ tags.
> You should remove it from your include file(s).
>
> Jim Baker wrote:
>
> > I have the following setup.
> >
> > 1.) A traditional ASP.NET project that has an "include" of files that

have
> > *.asp extensions. Essentially I have the lines (with the missing !

added):
> >
> > <--#include file="header.asp" -->
> > <--#include file="footer.asp" -->
> >
> > 2.) Everythings works fine relative to those. However, I need to have

some
> > VBScript in my header.asp file which is already heavily laden with
> > JavaScript. I also modified the header to include another *.asp page.

So I
> > have (modified so that it'll paste here):
> >
> > <@LANGUAGE=VBSCRIPT>
> > <--#include file="../Connections/CW_conn1.asp" -->
> > <%
> > set Scroller_Specials = Server.CreateObject("ADODB.Recordset")
> > Scroller_Specials.ActiveConnection = MM_CW_conn1_STRING
> > Scroller_Specials.Source = "SELECT * FROM Tbl_Inventory WHERE Special

= 1"
> > Scroller_Specials.CursorType = 0
> > Scroller_Specials.CursorLocation = 2
> > Scroller_Specials.LockType = 3
> > Scroller_Specials.Open()
> > Scroller_Specials_numRows = 0
> > %>
> > <%
> > Dim Repeat1__numRows
> > Repeat1__numRows = -1
> > Dim Repeat1__index
> > Repeat1__index = 0
> > Scroller_Specials_numRows = Scroller_Specials_numRows + Repeat1__numRows
> > %>
> >
> > I'm getting an error that:
> >
> > Parser Error
> > Description: An error occurred during the parsing of a resource required

to
> > service this request. Please review the following specific parse error
> > details and modify your source file appropriately.
> >
> > Parser Error Message: There can be only one 'page' directive.
> >
> > Any ideas?
> >
> > ~James
> >
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript to generate strong WPA pre shared keys? Wireless Networking 1 11-15-2004 10:30 PM
Problem with a VBScript on XP machines. Drew MCSE 2 12-18-2003 08:25 PM
Microsoft VBScript runtime error '800a0046' Stephen Chau MCSE 3 12-17-2003 08:50 PM
client side vbscript access to server vars? Mike Laskie ASP .Net 1 08-21-2003 03:39 PM
ASP, vbscript and Netscape... sftwrdvlpr ASP .Net 0 06-25-2003 05:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57