By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,773 Members | 1,778 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,773 IT Pros & Developers. It's quick & easy.

XML Escaping for Textbox

P: n/a
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.PageRequestManagerParserErrorExceptio n: 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
Share this Question
Share on Google+
5 Replies


P: n/a

"Nick" <a@a.comwrote in message
news:uu**************@TK2MSFTNGP05.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.PageRequestManagerParserErrorExceptio n: 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

P: n/a
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****@microsoft.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.PageRequestManagerParserErrorExceptio n: 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

P: n/a
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****@microsoft.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****@microsoft.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.PageRequestManagerParserErrorExceptio n: 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

P: n/a
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.comwrote in message
news:Li****************@TK2MSFTNGHUB02.phx.gbl...
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****@microsoft.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.PageRequestManagerParserErrorExceptio n: 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

P: n/a
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.comwrote in message
news:uT**************@TK2MSFTNGP05.phx.gbl...
>
"Nick" <a@a.comwrote in message
news:uu**************@TK2MSFTNGP05.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.PageRequestManagerParserErrorExceptio n: 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 discussion thread is closed

Replies have been disabled for this discussion.