我想在单击按钮时在新窗口中打开重定向页面 [英] I want to open the redirected page in new window when click on the button

查看:73
本文介绍了我想在单击按钮时在新窗口中打开重定向页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在新窗口中打开chat.aspx页面,当用户点击按钮时。

我正在使用查询字符串值重定向。



我尝试了什么:



我尝试使用以下代码

string pageurl =Chat.aspx?SQLID =+ chat.ID +& chatUserFirstname =+ chat.FirstName.Trim()+& chatUserLastname =+ chat.lastname.Trim()+

& optvalue =+ chat.optvalue.Trim()+& Reason =+ chat.Reason +& Desc =+ chat.Message.Trim()+& Workgroup = + strWG;



Response.Write(window.open('pageurl +','_ blank'););



Response.End();

i希望在新窗口中打开Querystring值,但它不起作用,请任何人帮忙这个

提前致谢

解决方案

您是否尝试在按钮点击指向重定向的情况下打开一个新窗口在QueryString中?

< a href =/ redirectpage.aspx?querystringtarget =_ blank>按钮标题< / a> 


I want to open the chat.aspx page in the new window, when user click on the button.
The i am redirecting with the Query string value.

What I have tried:

I tried with the following code
string pageurl="Chat.aspx?SQLID=" + chat.ID + "&chatUserFirstname=" + chat.FirstName.Trim() + "&chatUserLastname=" + chat.lastname.Trim() +
"&optvalue=" + chat.optvalue.Trim() + "&Reason=" + chat.Reason + "&Desc=" + chat.Message.Trim() + "&Workgroup=" + strWG;

Response.Write("window.open(‘"+pageurl+"’,'_blank' );");

Response.End();
i want to open in new window with the Querystring value but it is not working,please anybody help with this
Thanks in advance

解决方案

Have you tried opening a new window on button click pointing to the redirect in the QueryString?

<a href="/redirectpage.aspx?querystring" target="_blank">Button title</a>


这篇关于我想在单击按钮时在新窗口中打开重定向页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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