473,769 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_num ber"" value="".COM,
MLSNumber"">");
- L
Sep 21 '07 #1
6 7134
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_num ber\" value=\".COM,
MLSNumber\">");
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

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

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

Sep 21 '07 #2
This is giving me a " Sys.Webforms.Pa geRequestManage rParserErrorExc eption:
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_num ber\" value=\".COM,
MLSNumber\">");
}

else

{

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

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

}

%>
Sep 21 '07 #3
Luke Davis wrote:
This is giving me a " Sys.Webforms.Pa geRequestManage rParserErrorExc eption:
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.co mwrote in message
news:e$******** ******@TK2MSFTN GP03.phx.gbl...
Luke Davis wrote:
>This is giving me a "
Sys.Webforms.P ageRequestManag erParserErrorEx ception: 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.co mwrote in message

news:e$******** ******@TK2MSFTN GP03.phx.gbl...
Luke Davis wrote:
This is giving me a "
Sys.Webforms.P ageRequestManag erParserErrorEx ception: 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 enableEventVali dation="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
30325
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
3753
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 delete the contents in the recordset 'rs' to delete the items from the shopping cart once the order is placed. Thanks, Amit Error Type: ADODB.Recordset (0x800A0CB3)
2
1506
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 53 The following is the code: <script LANGUAGE="JavaScript">
2
6307
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 I'm supposed to get meaning that my query seems to be working fine but instead of making its way to the INCLUDE file (bottom navigation bar) it displays the following error msg instead of the included nav bar... *** error '80020009' Exception...
12
1532
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) A data base is SQL Server 2000. ********************************** Sub Desplegar (Mes) Set dConn=Server.CreateObject("adodb.connection") dConn.open application("StrConRuta") Set dRs=dConn.Execute("select * from solicitud_canje_gte_temp where...
4
6719
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 DB Provider for SQL Server SQLState: 42000
3
2290
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, although it seems simplicity, IE throws up an error box reading "Error: Object does't support this property or method_ Code: 0". Slight background on the use of this: user talks to customer on the phone, asks questions and fills in the form based on the...
0
2026
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 Public FormElements Private VarArrayBinRequest
1
5457
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 group get automatically re-directed after uploading. However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension. Members from the second group do see the "exceeds max file...
1
1376
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#" AutoEventWireup="true" CodeFile="Listing.aspx.cs" Inherits="Admin_Category_Listing" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>...
0
9589
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7413
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
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
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.