3

I have some custom ASPX developed in VS2008 which have C# code. They are currently deployed at the moment to the LAYOUTS folder, although I believe they ought to be copied down to the site collection this feature is going to be used on.

Should these pages instead be kept in a FEATURES folder and copied down as part of the Feature Activation to the site collection? What else might need to be done in terms of allowing the custom code behind the pages to run?

1 Answer 1

2

It depends on what is the purpose of the aspx page.

If it's for something similar to the pages in Site Settings and never should be modified by the user, then it should stay in a subfolder of LAYOUTS.

if it's some kind of content page, which may be modified by the user (maybe using SharePoint designer, then it should be in the feature folder with corresponding <Module> elements. The code should then be in a base class/controls which are registrered as SafeControls.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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