I am unable to get a my popup to recognize a hidden field on the calling
page. I have this working on a different page although that page is a tad
simpler. The page I am trying now calls from a templated column of a grid
from a UC but the hidden field that I am calling is on the main page. Here
is the code:
Popup:
window.opener.MainForm.hiddenField.value = 99;
(it states that this object is null or not an object - also I am doing a
RegisterClientScriptBlock with this)
MainPage:
protected System.Web.UI.HtmlControls.HtmlInputHidden hiddenField;
if (hiddenField.Value!="")
{
string str = hiddenField.Value;
}
<input type="hidden" id="hiddenField" name="hiddenField" runat="server">
Any help is appreciated.