Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to get a popup to recognize hidden field ??

2 views
Skip to first unread message

aaa

unread,
May 27, 2005, 11:17:12 AM5/27/05
to
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.


Bruce Barker

unread,
May 27, 2005, 11:38:40 AM5/27/05
to
most likely your hidden field is contained in another asp.net control, so
its client name is not "hiddenField". view source to see if this is the
problem.

-- bruce (sqlwork.com)

"aaa" <som...@microsoft.com> wrote in message
news:eNZgp8s...@TK2MSFTNGP12.phx.gbl...

aaa

unread,
May 27, 2005, 12:13:38 PM5/27/05
to
This makes sense but it is indeed "hiddenField".


"Bruce Barker" <brubar_nos...@safeco.com> wrote in message
news:eS76oItY...@TK2MSFTNGP10.phx.gbl...

James Doughty

unread,
May 27, 2005, 11:14:48 PM5/27/05
to
try using document.getElementbyId('hiddenField').value = 99;

I've come across this problem when I've refernced fields on a page with
user controls.

"aaa" <som...@microsoft.com> wrote in
news:eNZgp8s...@TK2MSFTNGP12.phx.gbl:

0 new messages