<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/2724900.aspx</link><pubDate>Wed, 05 Nov 2008 04:58:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2724900</guid><dc:creator>Mr. Javaman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2724900.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2724900</wfw:commentRss><description>&lt;p&gt;Okay so this is a prohibited thing AJAX and Response.Write.... So shouldn&amp;#39;t any control in an update panel be updateable?&amp;nbsp; In Java, labels can utilize HTML, but not ASP:Labels, so if I have formatted HTML that I want to use how do I get it out?&amp;nbsp; Response.Write will take a string of HTML and do a beautiful job EXCEPT when in an UPDATE Panel.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;BTW... This problem has been known since 2002 how long does it take to fix and or realize this is just a dumb restriction.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/2674883.aspx</link><pubDate>Fri, 10 Oct 2008 10:16:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2674883</guid><dc:creator>prgoncalves</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2674883.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2674883</wfw:commentRss><description>&lt;p&gt;I had the same problem&amp;nbsp;when passing values to pages beacaus&amp;nbsp;I was creating a form to submit with Response.Write(), that had problem with ajax.&lt;/p&gt;
&lt;p&gt;The solution I found is using a dinamic form created from javascript, based on the example:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://en.allexperts.com/q/Javascript-1520/create-form-submit-fly.htm"&gt;http://en.allexperts.com/q/Javascript-1520/create-form-submit-fly.htm&lt;/a&gt;&lt;/p&gt;&lt;font size="2"&gt;I use the next function to pass values to another page. Here I use the scripts in the link above.&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;static&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; submitValues(System.Collections.Specialized.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;NameValueCollection&lt;/font&gt;&lt;font size="2"&gt; dados, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; url)&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&amp;nbsp; Page&lt;/font&gt;&lt;font size="2"&gt; currentPage = (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Page&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;HttpContext&lt;/font&gt;&lt;font size="2"&gt;.Current.CurrentHandler;&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&amp;nbsp; ScriptManager&lt;/font&gt;&lt;font size="2"&gt; currentScriptManager = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;ScriptManager&lt;/font&gt;&lt;font size="2"&gt;.GetCurrent(currentPage);&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&amp;nbsp; StringBuilder&lt;/font&gt;&lt;font size="2"&gt; sb = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;font size="2"&gt;();&lt;br /&gt;&amp;nbsp; sb.Append(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;var submitForm = getNewSubmitForm();&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; key &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; dados.Keys)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sb.Append(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;createNewFormElement(submitForm, &amp;#39;{0}&amp;#39;, &amp;#39;{1}&amp;#39;);&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, key, dados[key]));&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; sb.Append(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;submitForm.action = &amp;#39;{0}&amp;#39;;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, url));&lt;br /&gt;&amp;nbsp; sb.Append(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;submitForm.submit();&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; string&lt;/font&gt;&lt;font size="2"&gt; scriptPost = sb.ToString();&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; if&lt;/font&gt;&lt;font size="2"&gt; (currentScriptManager != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;font size="2"&gt; &amp;amp;&amp;amp; currentScriptManager.IsInAsyncPostBack)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #region&lt;/font&gt;&lt;font size="2"&gt; Came from AJAX request&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptManager&lt;/font&gt;&lt;font size="2"&gt;.RegisterStartupScript(currentPage, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;typeof&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;), &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;submitAjax&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, scriptPost, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; #endregion&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp; }&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp; else&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp; {&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; #region&lt;/font&gt;&lt;font size="2"&gt; Came from normal request&lt;br /&gt;&amp;nbsp;&amp;nbsp; currentPage.ClientScript.RegisterStartupScript(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;typeof&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt;), &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;submitNoAjax&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, scriptPost, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;font size="2"&gt;);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; #endregion&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp; }&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/2266298.aspx</link><pubDate>Mon, 31 Mar 2008 13:40:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2266298</guid><dc:creator>gkopparam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2266298.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2266298</wfw:commentRss><description>&lt;p&gt;How will i be able use registerStratup script when i want to write&amp;nbsp;back a new form to the client and then, do a submit of that for i just created.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;lt;form name=ABC id=ABC action=&amp;quot;/test.aspx&amp;quot;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;method=post &amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;lt;input type=hidden name=&amp;quot;txtBox&amp;quot; value=&amp;quot;test&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;lt;/FORM&amp;gt;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;gt; document.ABC.submit()&amp;lt;/script&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;but when i use response.write in normal pages the above works absolutely fine. but in AJAX enabled web pages it gives me the 500 error .&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1613240.aspx</link><pubDate>Fri, 09 Mar 2007 13:28:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1613240</guid><dc:creator>js2004</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1613240.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1613240</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;Steve Marx:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;The response from the server from an async postback has to have a particular format so that the AJAX Library running in the browser can parse it.&amp;nbsp; Response.Write changes the format of the response, making it unparsable.&amp;nbsp; That's why Response.Write is incompatible with asynchronous postbacks.&lt;/p&gt;
&lt;p&gt;For examples such as the one in this thread, ScriptManager.RegisterStartupScript(...) is usually what you need.&lt;/p&gt;
&lt;p&gt;Yours Truly,&lt;br /&gt;Steve Marx&lt;br /&gt;Microsquish Weenie&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok. Thank you Steve.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;jsmith&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1610325.aspx</link><pubDate>Thu, 08 Mar 2007 00:46:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1610325</guid><dc:creator>Steve Marx</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1610325.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1610325</wfw:commentRss><description>&lt;p&gt;The response from the server from an async postback has to have a particular format so that the AJAX Library running in the browser can parse it.&amp;nbsp; Response.Write changes the format of the response, making it unparsable.&amp;nbsp; That's why Response.Write is incompatible with asynchronous postbacks.&lt;/p&gt;
&lt;p&gt;For examples such as the one in this thread, ScriptManager.RegisterStartupScript(...) is usually what you need.&lt;/p&gt;
&lt;p&gt;Yours Truly,&lt;br /&gt;Steve Marx&lt;br /&gt;Microsquish Weenie&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1610241.aspx</link><pubDate>Wed, 07 Mar 2007 23:12:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1610241</guid><dc:creator>fcedotal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1610241.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1610241</wfw:commentRss><description>&lt;p&gt;I think what is happening is this: (but won't bet my life on it!)&lt;/p&gt;
&lt;p&gt;When you put something in your code-behind page that renders javascript, Ajax is controlling javascript at this point and it won't let anything else get rendered, UNLESS you register the script in your code behind page.&lt;/p&gt;
&lt;p&gt;Registering the script lets Ajax know that javascript is being rendered, so Ajax know what to do with it.&lt;/p&gt;
&lt;p&gt;I wish one of the Microsquish weenies would respond to this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;fcedotal&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1610186.aspx</link><pubDate>Wed, 07 Mar 2007 22:31:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1610186</guid><dc:creator>Lovely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1610186.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1610186</wfw:commentRss><description>&lt;p&gt;You can use this way:&lt;/p&gt;&lt;pre class=coloredcode&gt; &lt;span class=kwd&gt;protected void&lt;/span&gt; Menu1_MenuItemClick1(&lt;span class=kwd&gt;object&lt;/span&gt; sender, MenuEventArgs e)
    {
        ScriptManager.RegisterStartupScript(&lt;span class=kwd&gt;this&lt;/span&gt;, &lt;span class=kwd&gt;this&lt;/span&gt;.GetType(), &lt;span class=st&gt;"key"&lt;/span&gt;, &lt;span class=st&gt;"confirm('Are you sure you want to delete?');"&lt;/span&gt;, &lt;span class=kwd&gt;true&lt;/span&gt;);
    }&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1610121.aspx</link><pubDate>Wed, 07 Mar 2007 21:50:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1610121</guid><dc:creator>js2004</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1610121.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1610121</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;paul.vencill:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;It's not a problem; I've done it.&amp;nbsp; Can you post code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Have you used Ajax.net v1.0 and Response.Write together?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;jsmith&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1610109.aspx</link><pubDate>Wed, 07 Mar 2007 21:45:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1610109</guid><dc:creator>js2004</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1610109.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1610109</wfw:commentRss><description>&lt;p&gt;That is right I can use ScriptManger.RegisterStartupScript(or RegisterClientScriptBlock). But that script gets written in page when it is&amp;nbsp;loaded. &lt;/p&gt;
&lt;p&gt;But that does not meet requirements if I have to dynamically write javascript during an ajax method call.&lt;/p&gt;
&lt;p&gt;Consider the case: Trying to use Ajax&amp;nbsp;to handle&amp;nbsp;the OnMenuItemClick event of Asp:Menu, I need to warn users through a dialog box that if they navigate away from the page their data will be lost. Easy solution will be to do a Response.Write(confirm) in the event. But&amp;nbsp;because of the inability of Ajax and Response.Write to work together I had to do a lot of twists to get the same effect. Even if I write javascript to a literal control and add it to page at run time I get the same error. I am not sure if I write javascript to a label it will work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;That is why I was wondering if there is a way to use Ajax and Response.Write at the same time in a page.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;jsmith&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1609060.aspx</link><pubDate>Wed, 07 Mar 2007 13:04:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1609060</guid><dc:creator>Lovely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1609060.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1609060</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;js2004:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Here is a discussion of the error:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/"&gt;http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I cannot use the solution discussed here.&lt;/p&gt;
&lt;p&gt;jsmith&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;

Response.Write not  support with ASP.NET AJAX .
You can use Scriptmanager mothod like the post before.
Or put your text in a Lable,"This suggestion from the blog you put it up".

Regards.</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1609058.aspx</link><pubDate>Wed, 07 Mar 2007 13:03:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1609058</guid><dc:creator>Lovely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1609058.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1609058</wfw:commentRss><description>&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;js2004:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;Here is a discussion of the error:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/"&gt;http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I cannot use the solution discussed here.&lt;/p&gt;
&lt;p&gt;jsmith&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/blockquote&gt;

Response.Write not  support with ASP.NET AJAX .
You can use Scriptmanager mothod like the post before.
Or put your text in a Lable,"This suggestion from the blog you put it up".

Regards.</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1608251.aspx</link><pubDate>Wed, 07 Mar 2007 02:25:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1608251</guid><dc:creator>js2004</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1608251.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1608251</wfw:commentRss><description>&lt;p&gt;Here is a discussion of the error:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/"&gt;http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I cannot use the solution discussed here.&lt;/p&gt;
&lt;p&gt;jsmith&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1607656.aspx</link><pubDate>Tue, 06 Mar 2007 18:47:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1607656</guid><dc:creator>fcedotal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1607656.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1607656</wfw:commentRss><description>&lt;p&gt;Thanks, it is working now.&amp;nbsp; This is what the new code looks like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeModelInputTable()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptManager.RegisterStartupScript(updAgitData, updAgitData.GetType, "key", "&amp;lt;script language='javascript'&amp;gt;showModalDialog('SpargerChooser.aspx', null,'status:no;dialogWidth:400px;dialogHeight:650px;dialogHide:false;help:no;scroll:no');&amp;lt;/script&amp;gt;", False) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1607511.aspx</link><pubDate>Tue, 06 Mar 2007 17:03:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1607511</guid><dc:creator>Lovely</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1607511.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1607511</wfw:commentRss><description>&lt;p&gt;You can use the &lt;font size=2&gt;RegisterStartupScript&amp;nbsp;method &lt;/font&gt;in this &lt;a class="" href="http://forums.asp.net/thread/1607033.aspx" target=_blank&gt;POST&lt;/a&gt;, &lt;/p&gt;
&lt;p&gt;and showModalDialog in the same way.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;</description></item><item><title>Re: Ajax and Response.Write</title><link>http://forums.asp.net/thread/1607491.aspx</link><pubDate>Tue, 06 Mar 2007 16:48:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1607491</guid><dc:creator>fcedotal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1607491.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1607491</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am having the same problem displaying a modla dialog.&amp;nbsp; It used to work, but when the panel that contains the button that ran the code&amp;nbsp; to display the modal dialog is wrapped in an update panel, it quit working.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; Private Sub btnShowSpargerParms_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnShowSpargerParms.Click&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeModelInputTable()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write("&amp;lt;script language='javascript'&amp;gt;showModalDialog('SpargerChooser.aspx', null,'status:no;dialogWidth:400px;dialogHeight:650px;dialogHide:false;help:no;scroll:no');&amp;lt;/script&amp;gt;")&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/p&gt;&lt;p&gt;&amp;nbsp;MakeModelInputTable gets some parameters from the current page, puts them into a session variable, then I display the modal dialog which does some calculations in the pageload using the parameters in the session variable, then displays the results on the modal dialog.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>