473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

quote error in response.write

I can't figure this out, why am I getting ")" expected and ";" expected on
this line?

Response.Write("<input type=""hidden"" name=""item_number"" value="".COM,
MLSNumber"">");
- L
Sep 21 '07 #1
6 7102
Simply, you're stopping a string with the first doublequote and then
starting it again with the second. Two double-quotes together don't mean
anything. What you need is the escape sequence which, if memory serves me
correctly, is \"

Response.Write("<input type=\"hidden\" name=\"item_number\" value=\".COM,
MLSNumber\">");
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Luke Davis" <lu**@gorealco.comwrote in message
news:uR******************@TK2MSFTNGP03.phx.gbl...
>I can't figure this out, why am I getting ")" expected and ";" expected on
this line?

Response.Write("<input type=""hidden"" name=""item_number"" value="".COM,
MLSNumber"">");
- L

Sep 21 '07 #2
This is giving me a " Sys.Webforms.PageRequestManagerParserErrorExceptio n:
The message received from the server could not be parsed. Common causes
for this error are when the response is modified by calls to
Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<input type="hidden"'.

This is the script, it's running inside of an update panel , any ideas?

<%

if (TextBox1.Text == "tom")

{

Response.Write("<input type=\"hidden\" name=\"amount\" value=\"19.95\">");

Response.Write("<input type=\"hidden\" name=\"item_number\" value=\".COM,
MLSNumber\">");
}

else

{

Response.Write("<input type=\"hidden\" name=\"amount\" value=\"14.95\">");

Response.Write("<input type=\"hidden\" name=\"item_number\" value=\".INFO,
MLSNumber\">");

}

%>
Sep 21 '07 #3
Luke Davis wrote:
This is giving me a " Sys.Webforms.PageRequestManagerParserErrorExceptio n:
The message received from the server could not be parsed. Common causes
for this error are when the response is modified by calls to
Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<input type="hidden"'.

This is the script, it's running inside of an update panel , any ideas?
8< snip
Response.Write("<input type=\"hidden\" name=\"amount\" value=\"19.95\">");
8< snip

All elements in xhtml has to be terminated. Put a / before the ending >
in the tag.

--
Göran Andersson
_____
http://www.guffa.com
Sep 21 '07 #4
It looks like that didn't work, any other ideas?

"Göran Andersson" <gu***@guffa.comwrote in message
news:e$**************@TK2MSFTNGP03.phx.gbl...
Luke Davis wrote:
>This is giving me a "
Sys.Webforms.PageRequestManagerParserErrorExcepti on: The message received
from the server could not be parsed. Common causes for this error are
when the response is modified by calls to Response.Write(), response
filters, HttpModules, or server trace is enabled. Details: Error parsing
near '<input type="hidden"'.

This is the script, it's running inside of an update panel , any ideas?

8< snip
>Response.Write("<input type=\"hidden\" name=\"amount\"
value=\"19.95\">");

8< snip

All elements in xhtml has to be terminated. Put a / before the ending in
the tag.

--
Göran Andersson
_____
http://www.guffa.com

Sep 21 '07 #5
Luke Davis wrote:
It looks like that didn't work, any other ideas?
Did you do it on all the input tags? What error message do you get now?

--
Göran Andersson
_____
http://www.guffa.com
Sep 21 '07 #6
On Sep 21, 9:42 pm, "Luke Davis" <l...@gorealco.comwrote:
It looks like that didn't work, any other ideas?

"Göran Andersson" <gu...@guffa.comwrote in message

news:e$**************@TK2MSFTNGP03.phx.gbl...
Luke Davis wrote:
This is giving me a "
Sys.Webforms.PageRequestManagerParserErrorExcepti on: The message received
from the server could not be parsed. Common causes for this error are
when the response is modified by calls to Response.Write(), response
filters, HttpModules, or server trace is enabled. Details: Error parsing
near '<input type="hidden"'.
This is the script, it's running inside of an update panel , any ideas?
8< snip
Response.Write("<input type=\"hidden\" name=\"amount\"
value=\"19.95\">");
8< snip
All elements in xhtml has to be terminated. Put a / before the ending >in
the tag.
--
Göran Andersson
_____
http://www.guffa.com- Hide quoted text -

- Show quoted text -
Try to set

<%@ Page enableEventValidation="false" %>

Hope this helps

Oct 10 '07 #7

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

Similar topics

9
by: Ricardo | last post by:
Hi. How should I pass a " (doble-quote) character to response.write() in order for it to be sent to the output ? Thanks in advance for the help.
1
by: Amit Kela | last post by:
Hey, I am getting the following error when I try to delete the contents of a recordset under a condition statement. Is there any way I can delete them without running into this error? I need to...
2
by: Jack | last post by:
The following is the error: Error Type: Microsoft JET Database Engine (0x80040E14) Syntax error (missing operator) in query expression 'ApplicantIntID ='. /subgrantapptest/ListSaved.asp, line...
2
by: dmiller23462 | last post by:
Hey guys, I'm back again....I've got the results displaying that I wanted but instead of having a "next" or "previous" link displayed I am getting the error msg below (I actually get the data that...
12
by: Lakrom | last post by:
Gentlemen a warm greeting of New Year, that everything is happy next to their dear family and beings. Now to the subject, I have an error of exception in this subroutine. The error is:(0x80020009)...
4
by: Jack | last post by:
Hi, I am trying to run an example code from a book. However I am getting the following error message: Number: -2147217900 Description: Syntax error or access violation Source: Microsoft OLE...
3
by: sjohnson1984 | last post by:
Hello all, thanks for taking the time out to read this. I have a javascript function, the purpose of which is to compare 2 form values and redirect the user if two values are met - however,...
0
by: poojamangal | last post by:
I want to upload images or pdf files. but i m unable to do so. i got error. please help me to sort it out.. my code is: <% 'on error resume next Class FreeASPUpload Public UploadedFiles...
1
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one...
1
by: mimranp | last post by:
Hi all i m using visual developer 2008 i m using xhtml1.1 in that .i m reciving so much error when check in online input w3 standard(C# language code behind) <%@ Page Language="C#"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.