Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We've created an Application Page which configure database for custom modules. We've designed this Application Page with SharePoint custom control.

There are some errors which can be occured when user configure database, for example, database server not found etc. How should we design an Application which should be similar to Sharepoint Error Pages.

Or Is there any better way of doing this?

Thanks.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

It's not clear the purpose of "similar to SharePoint Error Page". If you can/want you can reusre SharePoint error page by using SPUtility.TransferToErrorPage(). If you need some customisations - then I beleave you must create something yorself ..

share|improve this answer

I believe if the exception caught by the page inherits from SPException, the message in the exception will be displayed on the normal error page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.