I am trying to activate the following code on the click event of a popup
window.
If I comment out the lines where I assign the values to the hidden fields
the Parent page submits otherwise it does nothing. I don't get it.
I have used this code before. Any help is appreciated.
string s="<script>";
s += "window.opener.Form1.hiddenID.value = " + 6 + ";";
s += "window.opener.Form1.hiddenFlag.value = \"" + 1 + "\";";
s += "window.opener.Form1.submit();";
s += "window.close();";
s += "</script>";
this.RegisterClientScriptBlock("addPopup",s);