Gets a value that indicates whether the
UpdatePanel control is being updated as a result of an asynchronous postback.
The IsInPartialRendering property is intended for use by control developers who want to know when an
UpdatePanel control is being updated as a result of an asynchronous postback.
2. use try... catch to catch errors, and in catch block, create an new exception which contain information of which updatepanel is updating and throw it.
3. check the information in the error at the client side, process the error based on the information
If you have further questions,let m eknow!
Best Regards,
Sincerely,
Jin-Yu Yin
Microsoft Online Community Support
MNF
Member
261 Points
73 Posts
How to use different client AJAX UpdatePanel error handling for different UpdatePanels?
Feb 10, 2008 09:54 AM|LINK
I 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 Customizing Error Handling for ASP.NET UpdatePanel Controls.) suggested to call add_endRequest and from EndRequestEventArgs use error Property .
My question is how can I find which of UpdatePanels caused the particular Request in EndRequestHandler?
I found an idea in comments of How to handle a timeout in an async postback to use response Property (Sys.Net.WebRequestExecutor class.) Then I can access webRequest Property , but what to do next?
My Blog: http://geekswithblogs.net/mnf/
Jin-Yu Yin -...
All-Star
21280 Points
1824 Posts
Re: How to use different client AJAX UpdatePanel error handling for different UpdatePanels?
Feb 15, 2008 06:06 AM|LINK
Hi,
Thank you for your post!
Follow these steps:
1. Get which UpdatePanel is updating at the server side. Check these links:
2. use try... catch to catch errors, and in catch block, create an new exception which contain information of which updatepanel is updating and throw it.
3. check the information in the error at the client side, process the error based on the information
If you have further questions,let m eknow!
Best Regards,
Jin-Yu Yin
Microsoft Online Community Support