我需要在成功上传文档后将当前用户重定向到自定义URL。
用户单击文档库中的“+新文档”
用户选择本地文档
文档上传,在成功上传并在列表中创建项目后的那一刻,我想将用户重定向到自定义网址
通常,在将文档成功上载到SharePoint 2010下的文档库之后,用户将获得一个模式对话框,其中只能看到带有文件名的字段“Name”。
我想阻止这个。 我怎么能做到这一点?
更新
在文档库中上传文档后,是否可以将用户重定向到从上传表单重定向到自定义页面而不是在Ann EventReceiver中的Edit.aspx?
我真的很沮丧! 我现在正在尝试使用它超过3天。
这是我的示例解决方案:
http://www.bog1.de/downloads/errd01.zip
您必须创建一个文档库“doclib”才能使其正常工作。
但它不起作用! 我使用了几个站点的样本。 我在ItemAdded事件中添加了逻辑。 但没有任何反应。 我只想在将文档成功添加到库后将用户重定向到另一个页面。 这是一个难以解决的问题吗?
i need to redirect the current user to a custom url after successfully uploading a document.
the user clicks "+ new document" in the document library
the user selects a local document
the document gets uploaded and in that moment after it is successfully uploaded and the item is created in the list, i want to redirect the user to a custom url
Normally after successfully uploading a document to a document library under SharePoint 2010, the user gets a modal dialog where he sees only the field "Name" with the filename.
I want to prevent this. How could i achieve this?
Update
Isn't it possible to redirect a User after Document uploading inside a Document Library to redirect from Upload Form to a custom page instead of Edit.aspx within ann EventReceiver?
I am really frustated! I am now trying for over 3 days to get it working.
Here is my sample solution:
http://www.bog1.de/downloads/errd01.zip
You must create a document library "doclib" to get it work.
But it does not work! I have used samples from several sites. I have added the logic inside the ItemAdded event. But nothing happens. I only want to redirect the user to another page after successfully adding a document to a library. Is this such a hard problem to get it work untder sp2010?
最满意答案
看起来,在EventReceiver中的SharePoint 2010中,不可能像在CancelWithRedirectUrl中那样使用模式对话框重定向到SharePoint页面。
It seems, that it is not possible in SharePoint 2010 inside an EventReceiver to redirect to a SharePoint page withoug haveing a modal dialog as in CancelWithRedirectUrl.
更多推荐
发布评论