<?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: How to use different client AJAX UpdatePanel error handling for different UpdatePanels?</title><link>http://forums.asp.net/thread/2174982.aspx</link><pubDate>Fri, 15 Feb 2008 07:06:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2174982</guid><dc:creator>Jin-Yu Yin - MSFT</dc:creator><author>Jin-Yu Yin - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2174982.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2174982</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your post!&lt;/p&gt;
&lt;p&gt;Follow these steps:&lt;/p&gt;
&lt;p&gt;1. Get which UpdatePanel is updating at the server side. Check these links:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a class="" href="http://msdn2.microsoft.com/en-us/library/system.web.ui.updatepanel.isinpartialrendering.aspx"&gt;UpdatePanel&lt;span class="cs"&gt;.&lt;/span&gt;IsInPartialRendering Property&lt;/a&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Gets a value that indicates whether the &lt;a id="ctl00_rs1_mainContentContainer_ctl03" href="http://msdn2.microsoft.com/en-us/library/bb359258.aspx"&gt;UpdatePanel&lt;/a&gt; control is being updated as a result of an asynchronous postback.&lt;/p&gt;
&lt;p&gt;The &lt;span class="selflink"&gt;IsInPartialRendering&lt;/span&gt; property is intended for use by control developers who want to know when an &lt;a id="ctl00_rs1_mainContentContainer_ctl28" href="http://msdn2.microsoft.com/en-us/library/bb359258.aspx"&gt;UpdatePanel&lt;/a&gt; control is being updated as a result of an asynchronous postback. &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/t/1151141.aspx"&gt;&lt;font color="#5403fa"&gt;Which UpdatePanel issued an Async Postback Call?&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://forums.asp.net/t/1056213.aspx"&gt;&lt;font color="#034efa"&gt;how to get which UpdatePanel has posted&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;2. use try... catch to catch errors, and in catch block, create an new&amp;nbsp;exception which contain information of which updatepanel is updating and throw it.&lt;/p&gt;
&lt;p&gt;3. check the information in the error at the client side, process the error based on the information&lt;/p&gt;
&lt;p&gt;If you have further questions,let m eknow!&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to use different client AJAX UpdatePanel error handling for different UpdatePanels?</title><link>http://forums.asp.net/thread/2164047.aspx</link><pubDate>Sun, 10 Feb 2008 10:54:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2164047</guid><dc:creator>MNF</dc:creator><author>MNF</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2164047.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2164047</wfw:commentRss><description>&lt;p&gt;I &amp;nbsp;have an ASP.NET AJAX page with several UpdatePanels. If error occured during asyncronous postback, I want to ignore it for some UpdatePanels and show errors for other UpdatePanels . The samples that I found(like&amp;nbsp;&amp;nbsp;&lt;a href="http://www.asp.net/AJAX/Documentation/Live/tutorials/CustomizingErrorHandlingforUpdatePanel.aspx"&gt;Customizing Error Handling for ASP.NET UpdatePanel Controls.&lt;/a&gt;) suggested to call &lt;span style="COLOR:#006600;"&gt;&lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.WebForms/PageRequestManagerClass/PageRequestManagerEndRequestEvent.aspx"&gt;add_endRequest&lt;/a&gt; and from &lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.WebForms/EndRequestEventArgsClass/default.aspx"&gt;EndRequestEventArgs&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;use &lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.WebForms/EndRequestEventArgsClass/EndRequestEventArgsErrorProperty.aspx"&gt;error Property&lt;/a&gt;&amp;nbsp; .&lt;/p&gt;
&lt;p&gt;My question is how can I find which of UpdatePanels caused the particular Request in EndRequestHandler? &lt;/p&gt;
&lt;p&gt;I found&amp;nbsp;an idea in comments of &lt;a href="http://smarx.com/posts/how-to-handle-a-timeout-in-an-async-postback.aspx"&gt;How to handle a timeout in an async postback&lt;/a&gt;&amp;nbsp;to use &lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.WebForms/EndRequestEventArgsClass/EndRequestEventArgsResponseProperty.aspx"&gt;response Property&lt;/a&gt; (&lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.Net/WebRequestExecutorClass/default.aspx"&gt;Sys.Net.WebRequestExecutor&lt;/a&gt; class.) Then I can access &lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.Net/WebRequestExecutorClass/29f9ec8a-adc2-4d52-a831-fc0956c01099.aspx"&gt;webRequest Property &lt;/a&gt;, but what to do next?&lt;/p&gt;</description></item></channel></rss>