-----------------------------------------------------------
New Message on cochindotnet
-----------------------------------------------------------
From: VishalRJoshi
Message 1 in Discussion
Redirecting to Default Error Html in case of Error
You might have many errors handled in your application but still there
would be few of them always left out, so what's the solution??... Well here
it is... Go and do the setting in the web.config file of your web
application...
<customErrors mode="RemoteOnly">
<error statusCode="404" redirect = "MyProblemServerNotFound.htm"/>
<defaultRedirect>UrProblemUnknownError.htm</defaultRedirect>
</customErrors>
Now interesting fact is in conjunction to our previous tip on
"SmartNavigation"... In case of pages for which you allow SmartNavigation
the defaultRedirect does not work and Microsoft has confirmed it to be a
bug... At the same time there is a work around...
Change your page directive a little bit when you use "SmartNavigation"
as follows
<[EMAIL PROTECTED] Language="C#" smartNavigation="True"
ErrorPage="UrProblemUnknownError.htm" %>
The ErrorPage here will help you in that scenario... Don't ask me why so,
You should not ask embarrassing questions... :-)
Vishal Joshi
Microsoft MVP .Net
If You Think YOU CAN... You Can...
http://VishalJoshi.Blogspot.com
http://www.microsoft.com/india/mvp/indiamvp.aspx
http://groups.msn.com/ChennaiNetUserGroup
http://groups.msn.com/CNUG-DAM
http://groups.msn.com/NetBloomingtonUserGroup
PS: If you encounter errors in viewing this mail then it might be possible
because your mail client is supporting HTML format... Visit my Blog (in
signature) to view the tip...
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/CochinDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]