重定向项目已添加到共享点列表中

发布于 2024-07-25 06:38:26 字数 96 浏览 3 评论 0原文

当用户将新项目输入到我配置的自定义列表中后,如何重定向到“谢谢”页面。

我能想到的一种方法是在项目中添加事件接收器,但是有没有 CAML 方法可以做到这一点?

how can i redirect to a "Thank You" page after a user has entered a new item into a custom list that I have provisioned.

one way i can think of is in the item adding event receiver but is there a CAML way of doing it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我是男神闪亮亮 2024-08-01 06:38:26

您可以使用“源”URL 参数。

例如,如果您的列表的链接是:

http://server/SiteCollection/Site/Lists/MyCustomList/NewForm.aspx

添加源 URL 参数指定下一页:

http://server/SiteCollection/Site/Lists/MyCustomList/NewForm.aspx?Source=http://server/SiteCollection/Site/ThankYou.aspx

这样做的缺点是,如果他们单击“取消”,他们也会被重定向到此页面。 但您或许可以使用一些 JavaScript 来改变这种行为。

You can use the "source" URL parameter.

For example, if the link to your list is:

http://server/SiteCollection/Site/Lists/MyCustomList/NewForm.aspx

Adding the Source URL parameter designates the next page:

http://server/SiteCollection/Site/Lists/MyCustomList/NewForm.aspx?Source=http://server/SiteCollection/Site/ThankYou.aspx

The downside to this, is that if they click cancel they will be redirected to this page as well. But you could probably alter this behavior with some JavaScript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文