发送2个参数以弹出窗口

发送2个参数以弹出窗口

本文介绍了发送2个参数以弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码将单个值传递给弹出窗口...
如何发送第二个值并在弹出窗口中读取它....


i am using the folllowing code to pass single value to popup window...
How to send second value and read the same in pop up window....


script+="<script language=''javascript'' type=''text/javascript''>";
        script+="var win=window.open(''DrugInfo.aspx?productID="+productId +",''popup'');";
        script+="</script>";
        ClientScript.RegisterClientScriptBlock(this.GetType(),"Javascript",script);

推荐答案

script+="<script language="''javascript''" type="text/javascript">";
        script+="var win=window.open(''DrugInfo.aspx?productID="+productId +"&SecondValue="+ newValue,''popup'');";
        script+="</script>";
        ClientScript.RegisterClientScriptBlock(this.GetType(),"Javascript",script);


这篇关于发送2个参数以弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 20:37