Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am working on a design document for one of my projects in MOSS 2007. There is a requirement to create a custom interface to upload document along with metadata to a document library. I am not sure which one will be the best approach for this:

  • creating a webpart and deploying on the webpart page or
  • creating a custom aspx page and deploying it or
  • creating a user control and using it on the page.
  • or if there is any better way to do this, please suggest.

I would appreciate if I could have the pros and cons of the above mentioned approaches.

Thanks, Somya

share|improve this question
add comment

1 Answer 1

1) The web part will require to be registered as a safe control, a user control is an automatically registered version since no options can be set at run time. If you are using visual studio or the equivalent -local on deployment this is never a concern.

2) Not required, you may want to do this to remove the web part security concerns however for this project creating a web part / user control would save time as you will find yourself writing much more code.

3) Probably the easiest solution as a user control is registered as safe automatically (Only server controls require registration into the web.config) you don't really want a user to add a new instance or modify it at all so this is perhaps the best route, easiest deployment, easiest to code and shortest all round implementation.

share|improve this answer
    
Hey Hugh, Thanks for the valuable input. In case I opt for user control, this user control will have code behind which again needs to be complied as DLL and there will be a safe control entry required for it. Also will this page be unghosted if I use user control in it? Thanks, Somya –  somya Sep 7 '12 at 7:19
add comment

Your Answer

 
discard

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.