Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 4 Sep 2008 11:58:16 -0700 (PDT),    group: microsoft.public.dotnet.framework.aspnet        back       


ModalPopupExtender and ScriptManager AsyncPostBackError Event   
Hello all,

I have been using the ModalPopupExtender as a way of catching errors
and displaying them to users. This includes business rule violations
that I catch. This all works fine as long as I can write the if
statement to trap the error.

However this does not work in the case of un-handled exceptions. I
have recently found out that un-handled ajax exceptions can be dealt
with using the AsyncPostBackError event. So what I have been trying to
do is deal with the error using the AsyncPostBackError event and this
display a custom message using the ModalPopupExtender. What I'm
finding now is that the ModalPopupExtender does not work after an un-
handled ajax exception. Apparently the processing of the page stops
after the error so I can't call the UpdatePanel.Update() and
ModalPopupExtender.Show() methods.

I would really like to be able to re-use the ModalPopupExtender for
all error messages. Can anyone tell me how I might solve this problem?

Thanks
date: Thu, 4 Sep 2008 11:58:16 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us