如何从 EventHandler 打开 URL - ItemAdded [SharePoint 2010]
如何从 EventHandler - ItemAdded 打开指向 SharePoint 列表的 URL 链接? 我尝试过: SPUtility.Redirect、properties.RedirectUrl 但它不起作用,也许我做错了什么。请帮忙。
谢谢, 陆克
How can I open URL link to SharePoint list from EventHandler - ItemAdded ?
I tried: SPUtility.Redirect, properties.RedirectUrl but it doesn't work, mayby I do something wrong. Please help.
Thanks,
Luk
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不知道你是否还遇到同样的问题。
无论如何,以下链接可能会对某人有所帮助。
http://www.sharepointkings.com/2008/06/redirection -from-event-handler.html
但是,此页面没有正确解释 httpcontext 如何工作。
应记住,类名必须匹配才能获取 httpcontext。
这段代码对我有用。
I dont know if you still having the same issue.
Anyways the following link might help someone.
http://www.sharepointkings.com/2008/06/redirection-from-event-handler.html
This page, however, does not properly explain how httpcontext works
Should keep in mind that class names must match in order to get httpcontext.
This code works for me.
这是解决方案: http://www.sharepointkings.com/2008 /06/redirection-from-event-handler.html
Here's the solution: http://www.sharepointkings.com/2008/06/redirection-from-event-handler.html