从一页重定向到2个不同的页面 [英] Redirecting to 2 different pages from one page

查看:111
本文介绍了从一页重定向到2个不同的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
在我的项目中,我创建了一个注册"页面.当用户填写其应用程序并单击提交"按钮时,我需要同时同时重定向到2个不同的页面,即我正在执行的打印页面"

Hello every one,
In my project I have created a Registration page . When the user fills his application and click submit button I need to redirect to 2 different pages at the same time first is Printing page that i am doing like this

ClientScript.RegisterStartupScript(this.Page.GetType(), "", "window.open('" + print_page + "','_blank');", true);



对于另一页,我正在这样做



and for another page I am doing like this

Responce.Redirect("homepage.aspx");




但问题是首页"print_page"未在新选项卡中打开.它正在重定向到"homepage.aspx".那么我该如何在同一页面上执行这两个过程
1.在浏览器中打开一个新选项卡,然后转到打印页面.
2.Responce.Redict返回首页


在此先感谢
Arun R.V




but the problem is the first page "print_page " is not opening in new tab It is redirecting to "homepage.aspx ". So how can i do this two process at same page
1.Open a new tab in browser and go to printing page.
2.Responce.Redict to home page


Thanks in advance
Arun R.V

推荐答案

您可以尝试此


you may try this


ClientScript.RegisterStartupScript(this.Page.GetType(), "", "window.open('printpage.aspx','_blank');window.location.href='homepage.aspx'", true); 



谢谢



Thanks


您好,
成功注册后,您可以将用户重定向到一个页面,在该页面上您将以不可编辑的方式显示详细信息(也许只是Labels会为您提供帮助).除了显示这些详细信息,您还可以给两个按钮打印"和继续".
如果用户单击打印",请使用 window.open 打开打印"页面.如果用户单击继续",请打开 homepage.aspx
Hi,
After successful registration, you can redirect the user to a page where, you show the details in a non-editable mode (may be just Labels would help you). Along with showing these details, you can also give two buttons ''Print'' and ''Continue''.
If the user clicks Print use window.open to open Print page. And if the User clicks Continue open homepage.aspx


这篇关于从一页重定向到2个不同的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆