3

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?

5
  • 1
    What people usually do, I think, is to use and IHTTPModule or something to redirect requests from that page to a custom page. Jul 15, 2014 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, 2014 at 9:21
  • Which page do you want to change ? Jul 15, 2014 at 9:24
  • @CameronVerhelst - it's related to this question: sharepoint.stackexchange.com/questions/108333/…
    – w128
    Jul 15, 2014 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 Jul 15, 2014 at 9:29

1 Answer 1

6

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.