让灯箱出现在引用页面上
我正在使用 ASP.NET(框架 2.0)和母版页进行工作。
我有一个需要注册的页面,然后用户会被踢回到引用页面。
我需要弄清楚如何提供一个出现在引用页面而不是注册页面上的成功灯箱(该事件在表单提交时触发)。
我在母版页和脚本中有内联内容,一切都很好,但表单会使用新的(引用)页面刷新,并且 DIV 再次隐藏。
会话是到达这里的唯一方法吗?有没有一种方法可以让主页面中出现一个灯箱,而不管子页面在做什么?
谢谢。
I am working in ASP.NET (framework 2.0) with Master Pages.
I have a page that requires registration and then the user gets kicked back to the referring page.
I need to figure out how to provide a success lightbox that appears over the referring page, not the registration page (the event is fired on form submit).
I have the inline stuff in the master page and the scripts and everything fires just fine but the form is refreshed with the new (referring) page and the DIV gets hidden again.
Is sessions the only way to go here? Is there a way of having one lightbox appearing from the master page regardless of what the sub-pages are doing?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该有一个成功的注册事件。在这种情况下,您可以发出一些 javascript 来导致重定向到引用页面吗?您可以传递一个参数来指示应显示一个灯箱。我不认为你可以直接从成功注册重定向,因为我猜测需要设置一些 cookie - 框架应该处理。我可能会离开,但这就是我要开始的地方。如果可能的话,我会尽量避免会话。
There should be a successful registration event. Can you emit some javascript in that scenario that would cause a redirection to the referring page. You could pass a parameter which would indicate that a light box should show up. I don't think you can redirect directly from successful registration because I am guessing that some cookie would need to be set- which the framework should handle. I might be off, but that is where I would start. I would try and avoid Session if possible.