Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP ERROR

Status
Not open for further replies.

irishone

Programmer
Aug 29, 2001
1
US
Greetings,

I am including an asp file from another server onto an existing asp page. The include works with an html file but if I point it to an .asp file I get this:

Active Server Pages error 'ASP 0141'

Page Command Repeated

/ChathamDocDev/vd1/test.asp, line 1

The @ command can only be used once within the Active Server Page.


I am including .asp files in .asp files elsewhere on the site with no issues.

Can someone help?

Thank you,

Steve


 
Hi,

problem is, your both asp pages, current and included page contain @ statement(s). For example, you have <%@ Language=VBScript %> statement in both the asp pages. after include, include file is also interpreted as part of main page. get rid of this duplicate statement in include file, as @ statements should occur at top of page.

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top