Active Server Pages Error Asp 0141
Content Reviews FAQ's e-Magazines e-Books Books Extensions Templates Showcases Videos Forums Overview / ASP / Active Server Pages error the command can only be used once within the active server page 'ASP 0141' Follow this topic Stop following this topic Share with active server pages error asp 0113 a friend Back to product page This topic is locked Active Server Pages error 'ASP 0141' vote! undo vote! JeffreyJones Posted 19 Sep 2002 09:52:19 I am getting this error but i dont know what it means. can someone give me a clue or explanation Active Server Pages error 'ASP 0141' Page Command Repeated /TMP26z342odod.asp, line 17 The @ command can only be used once within the Active Server Page. Replies VinceBaker Replied 19 Sep 2002 10:55:23 Open the page in the code view and you will see that the first 2 lines are duplicated. You can only have one Global script definition per page.It will either show:<%@LANGUAGE="VBSCRIPT"%><%@LANGUAGE="VBSCRIPT"%>or <%@LANGUAGE="JAVASCRIPT"%><%@LANGUAGE="JAVASCRIPT"%>EIther way, remove the second line so the first line (the very top of the page) remains.RegardsVinceResponse.write("The best line of code you can ever use"VBScript | ASP | HTML | SQL | Oracle | Hosting JeffreyJones Replied 19 Sep 2002 10:57:14
quote:Thank you it worked Reply to this topic Reply BEST VALUE Get All 120+Extensions & Temp
Open the page in the code view and you will see that the first 2 lines are duplicated. You can only have one Global script definition per page.It will either show:<%@LANGUAGE="VBSCRIPT"%><%@LANGUAGE="VBSCRIPT"%>or <%@LANGUAGE="JAVASCRIPT"%><%@LANGUAGE="JAVASCRIPT"%>EIther way, remove the second line so the first line (the very top of the page) remains.RegardsVinceResponse.write("The best line of code you can ever use"VBScript | ASP | HTML | SQL | Oracle | Hosting
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs http://www.dmxzone.com/forum/topic/19832/ from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. Microsoft: ASP (Active Server Pages) Forum at Tek-Tips HomeForumsProgrammersWeb DevelopmentMicrosoft: ASP (Active Server Pages) Forum ASP ERROR thread333-51542 http://www.tek-tips.com/viewthread.cfm?qid=51542 Forum Search FAQs Links MVPs ASP ERROR ASP ERROR irishone (Programmer) (OP) 1 Feb 01 09:10 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 1The @ 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 RE: ASP ERROR Nanda (Programmer) 1 Feb 01 10:18 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 Red Flag This Post Please let us know here why this post is inappropri
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Configuration and Deployment/'ASP 0141' error when I include an aspx file in a classic asp http://forums.asp.net/t/1525161.aspx?+ASP+0141+error+when+I+include+an+aspx+file+in+a+classic+asp+site+even+though+the+site+is+asp+net+enabled site,... 'ASP 0141' error when I include an aspx file in a classic asp site, even though the site is asp.net enabled [Answered]RSS 1 reply Last post Feb http://www.aspmessageboard.com/showthread.php?17852-error-039ASP-0141-039-when-I-include-file 12, 2010 08:28 PM by Bruce L ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search active server Reply cyoker Member 6 Points 163 Posts 'ASP 0141' error when I include an aspx file in a classic asp site, even though the site is asp.... Feb 12, 2010 11:57 AM|cyoker|LINK hiya folks, I've got a clasic asp app that I've enabled for asp.net 2.0. I'm assuming that the: 1) classic asp pages are served by active server page whatever handler originally handled them 2) asp.net pages are handled by the aspx handler I'm including the aspx file in an include, eg, I get an error: ((Active Server Pages error 'ASP 0141' myPage.aspx, line1 The @ command can only be used once within the Active Server Page.)) I can confirm that aspx pages run fine on their own, so that rules out asp,net version issues I'm assuming that I need to do some more configuration to get this working. Any advice appreciated. Thanks, yogi buy an old van and drive round oz. Reply Bruce L Star 12480 Points 2832 Posts Re: 'ASP 0141' error when I include an aspx file in a classic asp site, even though the site is a... Feb 12, 2010 08:28 PM|Bruce L|LINK I don't think you can include an ASPX file in an ASP page. When you include a page in ASP, ASP ISAPI will try to execute the included page as an ASP page. Bruce http://www.discountASP.NET ‹ Previous Thread|Next
I include file If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 3 of 3 Thread: error 'ASP 0141' when I include file Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-04-200002:37 PM #1 James View Profile View Forum Posts Senior Member Join Date Dec 1969 Posts 1,156 error 'ASP 0141' when I include file How can I fix this?
I am getting the following error when I include a file:
Active Server Pages error 'ASP 0141'
Page Command Repeated
/iwa2/search.asp, line 1
The @ command can only be used once within the Active Server Page.
The page I am trying to include has only html in it:
search.asp
<FORM id=form1 name=form1>
<table>
<TR>
<td>
<INPUT Name="qry" >
</td>
<td>
<INPUT type=submit Value="Search" id=submit1 name=submit1>
</td>
</TR>
</table>
</form> Reply With Quote 04-04-200002:56 PM #2 Vlince View Profile View Forum Posts Senior Member Join Date Dec 1969 Posts 2,092 RE: error 'ASP 0141' when I include file Usually this error is caused when you have more than one @ in your code, I had this error once and in my page.asp I had:
<%@ Language=VBScript %> at the top, I was also including a include.inc file, and in that file I had the
<%@ Language=VBScript %> at the top. I was getting the same error message as you!
Hope it helps
otherwise I really would like to know what can cause this error mesage! Reply With Quote 04-04-200002:58 PM #3 Corin Guest RE: error 'ASP 0141' when I include file you have this symbol @ in both your initial file and your include file. Take one instance out Reply With Quote Quick Navigation ASP Top Site Areas Settings Private Messages Subscr