Sharepoint 2010 - Redirect to library item's default edit page
-
24-10-2019 - |
سؤال
I want to programmatically upoad a document to a Sharepoint library. After uploading I want to redirect the user to the Edit Page (OOB or custom) associated with the new library item.
How do I know where to redirect to?
المحلول
There's some examples here:
// Edit form full url
string.Format("{0}{1}?ID={2}", item.Web.Url, item.ParentList.Forms[PAGETYPE.PAGE_EDITFORM].ServerRelativeUrl, item.ID);
// Edit form relative url
string.Format("{0}?ID={1}", item.ParentList.Forms[PAGETYPE.PAGE_EDITFORM].ServerRelativeUrl, item.ID);
لا تنتمي إلى StackOverflow