which is the best way to create a custom error page in sharepoint ?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
Depends what you mean by "best". The easiest way: In your web.config file: in the <system.web> section, modify the customErrors element to: <customErrors mode="On" defaultRedirect="/Pages/MyCustomErrorPage.aspx" /> |
|||||
|
|
Write a HttpModule to handle the onerror event, and redirect to the custom error page. |
|||
|
|
