Question

Je veux upoad un document par programmation à une bibliothèque Sharepoint. Après avoir téléchargé je veux rediriger l'utilisateur vers la page d'édition (OOB ou personnalisé) associé au nouvel élément de bibliothèque.

Comment puis-je savoir où rediriger vers?

Était-ce utile?

La solution

Il y a quelques exemples ici:

http: / /social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/2be88c8b-812b-4574-8c2c-965cedd2f199/

// 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);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top