Question

J'ai juste essayé d'accéder à la propriété "Filenotfountpage" pour une application Web et de son apparition comme NULL, je me demande si sa nulle par défaut ou si quelque chose l'a changé à Null.

Je voudrais aussi savoir quelle serait la meilleure pratique pour la mise en place de pages personnalisées, par exemple.Devrais-je créer un http.module (que j'ai déjà créé) ou une autre solution, sauf modification de la page "SPS404.HTML" dans 12 HIVE.

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top