Domanda

Ho appena provato a accedere alla proprietà "FileNotFoundPage" per un'applicazione Web e il suo arrivo come NULL, mi chiedo se è nullo per impostazione predefinita o se qualcosa è cambiato in NULL.

Vorrei anche sapere quali sarebbero le migliori pratiche per la creazione di pagine personalizzate, ad es.Dovrei creare un http.module (che ho già creato) o in qualsiasi altro modo tranne modificare la pagina "SPS404.HTML" in 12 alveari.

È stato utile?

Soluzione

The default value is null which sililar to empty string or wrong filename gives the default handling.

If having the same error page for the entire web app is OK, then I'd recommend setting SPWebApplication.FileNotFoundPage instead of using a HttpModule. Remember that the filename is relative to {SharePointRoot}\TEMPLATE\LAYOUTS{LCID} and the file should contain more that 512 bytes

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top