سؤال

Which is the best way to create a custom error page in SharePoint ?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top