SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add some custom code to one of the native SharePoint's aspx files in the hive (14\TEMPLATE\LAYOUTS). Specifically, I wish to implement a Page_LoadComplete event that does some additional processing after the aspx has already been loaded.

Would any such modification automatically result in an unsupported state, regardless of the code added, and should as such be avoided?

share|improve this question
What people usually do, I think, is to use and IHTTPModule or something to redirect requests from that page to a custom page. – Cameron Verhelst Jul 15 '14 at 9:15
@CameronVerhelst yes, that's the alternative I was actually thinking about, although redirection is not what I'm after. – w128 Jul 15 '14 at 9:21
Which page do you want to change ? – Cameron Verhelst Jul 15 '14 at 9:24
@CameronVerhelst - it's related to this question:… – w128 Jul 15 '14 at 9:25
The related question is to do with custom retention policies, it's not a page that would get "much" use I think, so redirecting to a custom page should not incur a big performance hit. If you can just copy paste the existing aspx content and map it to the same code behind, you should be free to make your own changes – Cameron Verhelst Jul 15 '14 at 9:29
up vote 6 down vote accepted

Yes, being a straight modification on a default SharePoint file, it will bring your farm to an unsupported state

share|improve this answer

Your Answer


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.