473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Unable to get a popup to recognize hidden field ??

aaa
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.


Nov 19 '05 #1
3 1784
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" <so*****@microsoft.com> wrote in message
news:eN*************@TK2MSFTNGP12.phx.gbl...
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.

Nov 19 '05 #2
aaa
This makes sense but it is indeed "hiddenField".
"Bruce Barker" <br******************@safeco.com> wrote in message
news:eS**************@TK2MSFTNGP10.phx.gbl...
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" <so*****@microsoft.com> wrote in message
news:eN*************@TK2MSFTNGP12.phx.gbl...
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.


Nov 19 '05 #3
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" <so*****@microsoft.com> wrote in
news:eN*************@TK2MSFTNGP12.phx.gbl:
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.



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
1
by: Jim | last post by:
I have a 2 checkboxes and a hidden field..what I want to happen is that you can only click on 1 of these checkboxes at a time and when you check a checkbox it will assign the hidden field...
3
by: Roy Adams | last post by:
Hi I'm reposting this question because for some reason can't post follow up question to this thread. What I'm trying to do is put the value and text from a a select in to a text field and to a...
2
by: Rodusa | last post by:
I have a hidden field inside one datagrid which I can't get to make it keep its state after a postback event. Look field: <input type="hidden" id="TxtHiddenItem_id" name="TxtHiddenItem_id"...
4
by: Magnus Blomberg | last post by:
Hello! I have a problem when using a hidden field to send a value to the server. Below you can see my code in simplyfied versions. What I'm trying to do is: 1. The user browses for a picture...
4
by: Joe | last post by:
Hello All: I have two webforms (WebForm1.aspx and WebForm2.aspx) that inherit from a base class called BasePage.aspx. BasePage.aspx has no user interface but inherits System.Web.UI.Page...
5
by: dvwool | last post by:
Hello, Another newbie here... I've been trying to make this work for days now and have finally decided to post as I can't seem to get it to work. Here's what I'm trying to do... I have a...
8
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
i have a GridView and a hidden field : <asp:TemplateField Visible=false > <ItemTemplate > <asp:HiddenField Value="<%#Eval("isActive")%>" id="hidIsActive" runat=server /> </ItemTemplate>...
5
by: Taftheman | last post by:
Hi, i have an asp.net and vb.net web page i am opening a popup window where the user can select somthing. When the user presses select it is suppose to go back to the original form closing the pop up...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.