Using Web Part when adding document to a library
When a user uploads a document to a SharePoint library, I need to present them with a few dropdowns and text fields where they can provide some extra info. The dropdowns are going to be populated from a database.
The way I have currently gone about this is create a Web Part which displays a user control. The user control contains the dropdowns. I can add the Web Part to a SharePoint page and it works as expected (pulls data from DB and displays in UC).
However I need this page to display after they 开发者_开发百科have uploaded a document to a library. Would this be achieved using a Workflow?
Thanks for your help.
You mean that you'd like the extra info to live as a page, and not a web part? Give event receivers a look:
MSDN Blogs: Event Handlers - Part 1
MSDN Blogs: Event Handlers - Part 2
MSDN Blogs: Event Handlers - Part 3
Event Receivers Class
精彩评论