473,836 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Escaping for Textbox

Hey there,

I'm trying to get a textbox (using ASP.NET / VB.NET) to display XML
without freaking out the browser afterwards.

Currently I have the textbox displaying the XML fine, but that's when
things go funny, the second another postback occurs it complains. I thought
that a textbox would have it's contents escaped in on way or another,
obviously not, any idea how I can get the page to ignore it's contents? I
don't want it to use the contents for anything, it's just for the users
convenience.

Error: Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The message
recieved from the server could not be parsed. Common cause for this error
are when the response is modified by calls to Response.Write( ), response
filters, HttpModiles, or server trace is enabled.

Cheers in advance for your time!

Nick.
Jun 27 '08 #1
5 1716

"Nick" <a@a.comwrote in message
news:uu******** ******@TK2MSFTN GP05.phx.gbl...
Hey there,

I'm trying to get a textbox (using ASP.NET / VB.NET) to display XML
without freaking out the browser afterwards.

Currently I have the textbox displaying the XML fine, but that's when
things go funny, the second another postback occurs it complains. I
thought that a textbox would have it's contents escaped in on way or
another, obviously not, any idea how I can get the page to ignore it's
contents? I don't want it to use the contents for anything, it's just for
the users convenience.

Error: Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The
message recieved from the server could not be parsed. Common cause for
this error are when the response is modified by calls to Response.Write( ),
response filters, HttpModiles, or server trace is enabled.

Cheers in advance for your time!
Turn off ViewState on the TextBox so that the data in the Textbox is not
held onto during the between round trips. That means you'll have to populate
the controls each time on the postback with the XML.

Jun 27 '08 #2
Hi Nick,

Based on your description, my understanding is that you use a TextBox on
page to accept some input and you assign some XML text into the textbox ,
however, when you post back the page, it report some error, correct?

In the error message , I saw the "Sys.WebForms.. ." component which is
ASP.NET ajax script class. So are you using AJAX in that page to perform
partial postback(non refresh post)? If so, would you provide some further
code logic about how to did the AJAX stuff or an simple example of the page
so that we can also perform test on my side? BTW, have you tried Arnold's
suggestion to see whether it helps?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Nick" <a@a.com>
Subject: XML Escaping for Textbox
Date: Fri, 20 Jun 2008 14:41:47 +0100
>
Hey there,

I'm trying to get a textbox (using ASP.NET / VB.NET) to display XML
without freaking out the browser afterwards.

Currently I have the textbox displaying the XML fine, but that's when
things go funny, the second another postback occurs it complains. I
thought
>that a textbox would have it's contents escaped in on way or another,
obviously not, any idea how I can get the page to ignore it's contents? I
don't want it to use the contents for anything, it's just for the users
convenience.

Error: Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The
message
>recieved from the server could not be parsed. Common cause for this error
are when the response is modified by calls to Response.Write( ), response
filters, HttpModiles, or server trace is enabled.

Cheers in advance for your time!

Nick.
Jun 27 '08 #3
Hi Nick,

Have you got any progress on this or is there any other finding?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

--------------------
>From: st*****@online. microsoft.com (Steven Cheng [MSFT])
Organization : Microsoft
Date: Mon, 23 Jun 2008 07:05:33 GMT
Subject: RE: XML Escaping for Textbox
>
Hi Nick,

Based on your description, my understanding is that you use a TextBox on
page to accept some input and you assign some XML text into the textbox ,
however, when you post back the page, it report some error, correct?

In the error message , I saw the "Sys.WebForms.. ." component which is
ASP.NET ajax script class. So are you using AJAX in that page to perform
partial postback(non refresh post)? If so, would you provide some further
code logic about how to did the AJAX stuff or an simple example of the
page
>so that we can also perform test on my side? BTW, have you tried Arnold's
suggestion to see whether it helps?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microso ft.com.

============== =============== =============== ======
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
>ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
============== =============== =============== ======
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>>From: "Nick" <a@a.com>
Subject: XML Escaping for Textbox
Date: Fri, 20 Jun 2008 14:41:47 +0100
>>
Hey there,

I'm trying to get a textbox (using ASP.NET / VB.NET) to display XML
without freaking out the browser afterwards.

Currently I have the textbox displaying the XML fine, but that's when
things go funny, the second another postback occurs it complains. I
thought
>>that a textbox would have it's contents escaped in on way or another,
obviously not, any idea how I can get the page to ignore it's contents?
I
>>don't want it to use the contents for anything, it's just for the users
convenience .

Error: Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The
message
>>recieved from the server could not be parsed. Common cause for this
error
>>are when the response is modified by calls to Response.Write( ), response
filters, HttpModiles, or server trace is enabled.

Cheers in advance for your time!

Nick.

Jun 27 '08 #4
Hi Steven,

I've found an alternative way to display the information I want without
using a Text box but using an iFrame instead which solves the issue I have
been experiencing.

Thanks a million for your time and help none the less.

Nick.

"Steven Cheng [MSFT]" <st*****@online .microsoft.comw rote in message
news:Li******** ********@TK2MSF TNGHUB02.phx.gb l...
Hi Nick,

Based on your description, my understanding is that you use a TextBox on
page to accept some input and you assign some XML text into the textbox ,
however, when you post back the page, it report some error, correct?

In the error message , I saw the "Sys.WebForms.. ." component which is
ASP.NET ajax script class. So are you using AJAX in that page to perform
partial postback(non refresh post)? If so, would you provide some further
code logic about how to did the AJAX stuff or an simple example of the
page
so that we can also perform test on my side? BTW, have you tried Arnold's
suggestion to see whether it helps?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
>>From: "Nick" <a@a.com>
Subject: XML Escaping for Textbox
Date: Fri, 20 Jun 2008 14:41:47 +0100
>>
Hey there,

I'm trying to get a textbox (using ASP.NET / VB.NET) to display XML
without freaking out the browser afterwards.

Currently I have the textbox displaying the XML fine, but that's when
things go funny, the second another postback occurs it complains. I
thought
>>that a textbox would have it's contents escaped in on way or another,
obviously not, any idea how I can get the page to ignore it's contents? I
don't want it to use the contents for anything, it's just for the users
convenience .

Error: Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The
message
>>recieved from the server could not be parsed. Common cause for this error
are when the response is modified by calls to Response.Write( ), response
filters, HttpModiles, or server trace is enabled.

Cheers in advance for your time!

Nick.

Jun 27 '08 #5
Hey there,

For some reason this post only just appeared! I blame Outlook Express.

Anyway thanks a million for the tip, I thought there must be some way of
excluding it, that's great, cheers.

Nick.

"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:uT******** ******@TK2MSFTN GP05.phx.gbl...
>
"Nick" <a@a.comwrote in message
news:uu******** ******@TK2MSFTN GP05.phx.gbl...
>Hey there,

I'm trying to get a textbox (using ASP.NET / VB.NET) to display XML
without freaking out the browser afterwards.

Currently I have the textbox displaying the XML fine, but that's when
things go funny, the second another postback occurs it complains. I
thought that a textbox would have it's contents escaped in on way or
another, obviously not, any idea how I can get the page to ignore it's
contents? I don't want it to use the contents for anything, it's just
for the users convenience.

Error: Sys.WebForms.Pa geRequestManage rParserErrorExc eption: The
message recieved from the server could not be parsed. Common cause for
this error are when the response is modified by calls to
Response.Write (), response filters, HttpModiles, or server trace is
enabled.

Cheers in advance for your time!

Turn off ViewState on the TextBox so that the data in the Textbox is not
held onto during the between round trips. That means you'll have to
populate the controls each time on the postback with the XML.

Jun 27 '08 #6

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

Similar topics

4
4425
by: Dave Moore | last post by:
Hi All, Can anybody point me to a FAQ or similar that describes what all this stuff is about please?. I'm interfacing with a MySQL database if that's relavent. I've read a couple of books which refer to stripslahes and 'escaping' but nothing really explains what these terms are and why these are used. Why is 'escaping' (whatever that is) used?. What the hell is a magic quote?. How is it different from a non-magic one?. Regards, Dave
5
6349
by: bobbyballgame | last post by:
I am having a problem calling Stored Procedures: .... dim MyValue, MyOtherValue MyValue = "Bobby's value" MyOtherValue = Bobby's other value" rs.Open "exec MyStoredProc """ & MyValue & """, """ & MyOtherValue & """", Conn
0
2063
by: Hans | last post by:
Hi! Can someone explain how ASP works when it comes to unicode characters on the querystring? See the testcode below. If you type in a chinese character in the first textbox and click "post" the javascript code will change the action for the <form> and add the text entered in the first editbox to the querystring and then submit the form. Then the value on the querystring (id) will be presented in the second textbox. 1. In my example...
11
2191
by: Geoff Caplan | last post by:
Hi folks, The thread on injection attacks was very instructive, but seemed to run out of steam at an interesting point. Now you guys have kindly educated me about the real nature of the issues, can I ask again what effective escaping really means? Are the standard escaping functions found in the PHP, Tcl etc APIs to Postgres bombproof? Are there any encodings that might slip through and be cast to malicious strings inside Postgres?...
2
3535
by: wylbur37 | last post by:
When using a form with an input textbox such as the following ... <input type="text" name="field1" size=30> I discovered that when a backslash (\) is typed into the textbox, when I later check the value (in $field1), I get *two* backslashes. For example, If I type ... c:\abc\xyz
4
9185
by: Jon | last post by:
Hi, I used XslCompiledTransform with the following Xsl file. The <xsl:text disable-output-escaping="yes"does not work when using XslCompiledTransform to do the trnasform (namely the output contain < not <), while it works when using MSXML2 to do the transform. Does anyone have the same problem and how to make the escape work? Thanks. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
5391
by: Taras_96 | last post by:
Hi everyone, I'm having a bit of trouble understanding the purpose of escaping nulls, and the use of addcslashes. Firstly, the manual states that: "Strictly speaking, MySQL requires only that backslash and the quote character used to quote the string in the query be escaped. This function quotes the other characters to make them easier to read in
1
5488
by: David Henderson | last post by:
I know 'disable-output-escaping' has been discussed in the past, but I can't put my finger on any of the threads to see if my current problem is addressed. Sorry for re-asking the question if it has already been answered... I have an XML doc that I am transforming via XSLT and JavaScript in the browser. This allows me to return unsorted data to the browser and allow the user to sort it with a mouseclick and not hit the server just...
2
2930
by: mister-Ed | last post by:
I have a datagrid, and when initializing my field variables, I need to double up apostrophes so they are accepted into SQL dbase. In the line below, i'm trying to do this with the Replace function, but i still get an error when entering an apostrophe: Dim sCompany As String = CType(e.Item.FindControl("textbox3"), textbox).Text.Replace("'", "''") ??? Mr. Ed
0
10854
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...
1
10600
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10257
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...
0
9387
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7794
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
6981
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4459
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
3116
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.