如何:在文档添加到sharepoint文档库后重定向(How to: Redirect after document adding to a sharepoint document library)

编程入门 行业动态 更新时间:2024-10-27 10:20:49
如何:在文档添加到sharepoint文档库后重定向(How to: Redirect after document adding to a sharepoint document library)

我需要在成功上传文档后将当前用户重定向到自定义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.

更多推荐

本文发布于:2023-08-05 03:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1428645.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档   重定向   sharepoint   Redirect   adding

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!