Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, My parent page contains one DropDownList.

On button click from this page my child window get opened.
for this i am using

C#
Response.Write("<script>window.open('Child_Page.aspx?Value=" + Convert.ToString(DropDownList.SelectedValue) +"','SITEID','MenuBar=No,Status=No,Toolbar=No,Width=980px,Height=500px,Scrollbars=Yes,resizable=yes');</script>");


On child pages for parent refreshing i am using

C#
string str_Value= Request["Value"];
                Response.Write("<script language='javascript'> window.opener.location.href = window.opener.location.href+'&Value=" + str_Value+ "';window.close();</script>");


First time I got this value on Parent page in query string but second time it appears zero.

Please suggest me proper way for this.
Posted
Updated 21-Jul-11 17:07pm
v3

1 solution

 
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