How to set custom upload form for existing specific document library in sharepoint using visual studio?
-
Have you checked out this blogpost? byteloom.blogspot.in/2012/01/…Rafał Saltarski– Rafał Saltarski2013-12-05 08:03:03 +00:00Commented Dec 5, 2013 at 8:03
-
This approach is when we will create document library programmatically. But what we have to do if we want to attach on existing document library?user1337886– user13378862013-12-05 09:49:56 +00:00Commented Dec 5, 2013 at 9:49
1 Answer
A custom aspx page would be possible though,but editing the OOTB upload.aspx in the 14 hive would make your environment unsupported, the next time you install an update for sharepoint, your changes could be overwritten. Modifying any OOTB page will impact all applications running on the same farm. What ever your custom requirement always copy the OOTB page to a subfolder and try work on that copy.
I'm pretty sure doing this with infopath is not possible, the forms should be bound to a (codebehind) class in the SharePoint object model, which handles the actual upload (add to list, set field values etc. etc.).
Meanwhile, here is one article on custom upload form for your reference.
Custom upload form for document library in SharePoint 2010 - programmatic approach
EDITED: Have a look at the below links to
-
This approach is when we will create document library programmatically. But what we have to do if we want to attach on existing document library?user1337886– user13378862013-12-05 09:49:16 +00:00Commented Dec 5, 2013 at 9:49
-
1you can user powershell to update default forms of a library like this $web = Get-SPWeb <Url here> $list = $web.Lists.TryGetList("<List Here>") $List.DefaultNewFormUrl = "<new url> $list.update()Remko– Remko2013-12-05 10:08:26 +00:00Commented Dec 5, 2013 at 10:08