469,898 Members | 2,201 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

<customErrors mode="Off"/>

I want to use <customErrors mode="Off"/in the web.config file; but I want
to have custom error message for database time out error message. Is it
possible?
Mar 30 '07 #1
3 2003
One way to achieve this would be to handle the database timeout exception in
your code ... maybe at a masterpage or a basepage level, and should a
time-out occur at db level, you can redirect it to the customized error page.

HTH
--
Sashidhar Kokku
ikaSystems Corp
"nkw" wrote:
I want to use <customErrors mode="Off"/in the web.config file; but I want
to have custom error message for database time out error message. Is it
possible?
Mar 30 '07 #2
The code is feeding object data source. how to capture the timeout exeption
raised by object data source?

"Sashidhar Kokku" wrote:
One way to achieve this would be to handle the database timeout exception in
your code ... maybe at a masterpage or a basepage level, and should a
time-out occur at db level, you can redirect it to the customized error page.

HTH
--
Sashidhar Kokku
ikaSystems Corp
"nkw" wrote:
I want to use <customErrors mode="Off"/in the web.config file; but I want
to have custom error message for database time out error message. Is it
possible?
Mar 30 '07 #3
Try the example here
http://msdn2.microsoft.com/en-us/lib...exception.aspx

--
Sashidhar Kokku
ikaSystems Corp
"nkw" wrote:
The code is feeding object data source. how to capture the timeout exeption
raised by object data source?

"Sashidhar Kokku" wrote:
One way to achieve this would be to handle the database timeout exception in
your code ... maybe at a masterpage or a basepage level, and should a
time-out occur at db level, you can redirect it to the customized error page.

HTH
--
Sashidhar Kokku
ikaSystems Corp
"nkw" wrote:
I want to use <customErrors mode="Off"/in the web.config file; but I want
to have custom error message for database time out error message. Is it
possible?
Mar 30 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Han | last post: by
1 post views Thread by Menno Abbink | last post: by
1 post views Thread by Savas Ates | last post: by
5 posts views Thread by Savas Ates | last post: by
2 posts views Thread by Beemer Biker | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.