473,576 Members | 3,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Active Server Pages error 'ASP 0141'

I am getting the errror Active Server Pages error 'ASP 0141'

Page Command Repeated

/contactform.asp , line 12

The @ command can only be used once within the Active Server Page.
Anybody know why?
<%
Dim myMail, myBody
myBody ="Name: "& request.form("n ame") & vbcrlf & "company: "& vbcrlf
& request.form ("company") & vbcrlf & "telephone: "& vbcrlf &
request.form ("telephone" ) & vbcrlf & "email: "& vbcrlf & request.form
("email") & vbcrlf & "informatio n: "& vbcrlf & request.form
("informatio n")
Set myMail = Server.CreateOb ject ("CDONTS.NewMai l")
myMail.From = request.form("e mail")
myMail.To = "we*******@desi gnprofessional. co.uk"
myMail.Subject = "Customer Contact"
myMail.Body = myBody
myMail.Send
set myMail=nothing

Response.Redire ct("thanks.html ")
%>
Jul 19 '05 #1
6 12744
Presumably at the top of your page you'll have
<%@ Language=VBScri pt%>
if you have an include that also has that, then you've used it more than
once.

"THE BIG MAN" <al**********@y ahoo.co.uk> wrote in message
news:e0******** *************** ***@posting.goo gle.com...
I am getting the errror Active Server Pages error 'ASP 0141'

Page Command Repeated

/contactform.asp , line 12

The @ command can only be used once within the Active Server Page.
Anybody know why?
<%
Dim myMail, myBody
myBody ="Name: "& request.form("n ame") & vbcrlf & "company: "& vbcrlf
& request.form ("company") & vbcrlf & "telephone: "& vbcrlf &
request.form ("telephone" ) & vbcrlf & "email: "& vbcrlf & request.form
("email") & vbcrlf & "informatio n: "& vbcrlf & request.form
("informatio n")
Set myMail = Server.CreateOb ject ("CDONTS.NewMai l")
myMail.From = request.form("e mail")
myMail.To = "we*******@desi gnprofessional. co.uk"
myMail.Subject = "Customer Contact"
myMail.Body = myBody
myMail.Send
set myMail=nothing

Response.Redire ct("thanks.html ")
%>

Jul 19 '05 #2
This can happen when you code contains a <% @Language=VBScr ipt %> and you
also have service side includes, which also contain this code. I don't
think it's related to the '@' in your email address.

Reference: PRB: Error 0x80004005 When You View ASP Page in Browser
http://support.microsoft.com/?id=307190
-rwg

Jul 19 '05 #3
Thanks for the help but i am still getting the error I changed the
code to this.

<body>
<%@LANGUAGE="VB SCRIPT" %>
Dim myMail, myBody
myBody ="Name: "& request.form("n ame") & vbcrlf & "company: "& vbcrlf
& request.form ("company") & vbcrlf & "telephone: "& vbcrlf &
request.form ("telephone" ) & vbcrlf & "email: "& vbcrlf & request.form
("email") & vbcrlf & "informatio n: "& vbcrlf & request.form
("informatio n")
Set myMail = Server.CreateOb ject ("CDONTS.NewMai l")
myMail.From = request.form("e mail")
myMail.To = "we*******@desi gnprofessional. co.uk"
myMail.Subject = "Customer Contact"
myMail.Body = myBody
myMail.Send
set myMail=nothing

Response.Redire ct("thanks.html ")
%>
It's still not working!
Jul 19 '05 #4
Is there another code in the message, like an 8000* or 8004* number?

Jul 19 '05 #5
No I posted the entire error message. I am using the following code
for the form. <form name="form1" method="post"
action="/contactform.asp ">
<table width="100%" border="0"
cellspacing="5" cellpadding="5" >
<tr>
<td width="27%">Nam e</td>
<td width="73%"><in put name="name"
type="text" id="name" size="60"></td>
</tr>
<tr>
<td>Company</td>
<td><input name="company" type="text"
id="company" size="60"></td>
</tr>
<tr>
<td>Telephone number </td>
<td><input name="telephone " type="text"
id="telephone" size="60"></td>
</tr>
<tr>
<td>Email address </td>
<td><input name="email" type="text"
id="email" size="60"></td>
</tr>
<tr>
<td>Further Information </td>
<td><textarea name="informati on"
cols="60" rows="5" id="information "></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit"
value="Submit"> </td>
</tr>
</table>
<p>&nbsp;</p>
</form>
I am using Dreamweaver and there is no server side include on the
page.
Jul 19 '05 #6
Could somone test the code for me. I have no idea how to fix this. The
code for the two pages is in my posts.
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
7123
by: carlos seramos | last post by:
I've got two IIS servers. One public and one staging. On the public server the ASP code works fine however on the staging server I've started getting this error recently: error '8002801d' Library not registered. /default.asp, line 4
1
7488
by: Lokesh | last post by:
Hi All, When i am accessing the website i am getting this error: Active Server Pages error 'ASP 0115' Unexpected error /hradmin/Default.asp
1
1683
by: Terry | last post by:
I just upgraded an NT IIS server to 2003 and IIS 6.0 now my Active Server Pages .asp pages do not load or open in the browser I get 500 Error Server Error. Yet and htm page will open. What do I need to change? or configure? Thanks
7
1953
by: McKirahan | last post by:
What is "active content"? My ASP page just returns HTML.... I have a page with an .htm extension that has a form whose action is an ASP page which generates a report after updating a database with the form data. Under Windowx XP SP2 the IE6 "Information Bar" has the message: "To help protect your security, Internet Explorer has...
3
3392
by: mehul | last post by:
Hi, I am trying to use Active Reports v1.1 (Build 1.1.0.84) in a ASP.NET application. Is it possible to use it through the COM interlop as Crystal Reports for .NET which comes built in with VS.NET doesnt work properly. Rgs,
1
4741
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I...
6
2453
by: Jack | last post by:
Hi, I got this book for some time. I need to download the source code for this book. However, Wrox, the publisher, does not have download code for this book. Could anybody suggest any site from where I can get the download of source code for this book? Thanks in advance. Regards.
0
2439
by: DY1 | last post by:
I have this message appearing on the webpage I intend to visit: ________________________________________________________ Active Server Pages error 'ASP 0126' Include file not found /resume.asp, line 4 The include file '/i_cc_security.asp' was not found. __________________________________________________________
20
5608
by: =?Utf-8?B?SnVzdGluIERvaA==?= | last post by:
"Active Server Pages error 'ASP 0113' Script timed out" I am still getting this error, and I am not sure how I could fix this. When I execute the query at SQL 2005, it only takes 8 seconds. The stored procedure for this report has been already went through Database Engine Tuning Advisor to put all the necessary indexes on the associated...
0
7845
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8121
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8286
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6517
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5340
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2287
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1385
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.