Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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);
Posted

1 solution

Just add another query string parameter like below

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);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900