Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Checking Request is Synchronous or Asynchronous in ASP.NET
travislaborde
follow
0
8-12-2008 1:05 PM
452 views
tags:
programming
,
asp.net
,
2008
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
The Unusual Reproductive Power of the Anglerfish
Stayin' Alive
Interesting faces
Glenda Dobbs-Palinstein
Global Warming Fraud and the Future of Science
Visualising a Billion Dollars
Cindy Sheehan was given a ticket for impeding traffic at protest
Strategist given warning from White House: never appear on Fox News
Couric Rips Obama
Hero Dog Tries To Help Wounded Dog
visit the
Top Clips page
View the Top Clips from
August 12, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://www.clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/3884b76e-a38c-4e51-8040-9455085358fe/C5D3A32A-2E25-4AB0-B8BD-1A5EC3A27D8C/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486" href="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486" style="font-size: 11px;">www.codeproject.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486"><SPAN class="ArticleTopTitle" id="ctl00_ArticleTopHeader_ArticleTitle">Checking Request is Synchronous or Asynchronous in ASP.NET</SPAN></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486"><P>In case Asp.Net 2.0 and AJAX, when any exception thrown while execution of asynchronous request, it is catched in "<CODE>ScriptManager1_AsyncPostBackError</CODE>" event, then AJAX framework handles that exception and shows java script alert box to user. No event (<CODE>Application_Error</CODE>) from Global.asax file gets fired.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486"><P>But, in Asp.Net 3.5 AJAX they changed exception handling mechanism and now both events "<CODE>ScriptManager1_AsyncPostBackError</CODE>" and <CODE>Application_Error </CODE>from Global.asax gets fired.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486"><P><EM>Issue</EM>: Now, if exception occurs in case of asynchronous request, application tries to redirect user to generic error page instead of showing JavaScript alert and ends up in another exception as <CODE>Redirect </CODE>is not allowed in asynchronous request. <EM>Ha.... exception within Application_Error method</EM> ;).</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.codeproject.com/script/Articles/Article.aspx?aid=28486"><div align="center"><img src="http://content7.clipmarks.com/blog_cache/www.codeproject.com/img/2D90D022-81E1-42D0-95B8-F113DAB23CA9" alt="image" /></div></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/C5D3A32A-2E25-4AB0-B8BD-1A5EC3A27D8C/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK