I always use iframes and don't know much about frames. For an iframe, parent
property of the window object gives you a reference to the top-level window.
You can refer to the elements in the parent windows as
parent.document.getElementById("chkMarked"). You can call
parent.myForm.submit() to initiate a postback.
To get more information on using frames, as opposed to iframes, start a
separate thread.
Eliyahu
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
Thanks for your reply. I have created a frameset which links to a "header"
(top)and "main" (bottom) aspx files.
I have a checkbox control and a label control in the header frame which I
want to access in the main frame. If chkMarked = true, store a value in
the db. The label control displays the question number that is generated in
the main frame.
How can I access that checkbox and label control ? The db code is in the
main frame. Also as each page in the main frame is Page.IsPostBack, how
do I refresh the controls in the header frame ?
TIA.
Andrew.
"Eliyahu Goldin" wrote:
Andrew,
You need to use a client-side timer. Look at javascript function
window.setInterval(...). To solve problem of restarting the timer every
time when the user moves to another page, consider using iframes. Put the
textbox with the countdown on the top level window and open other pages in a
iframe. In this way the textbox won't be affected by navigating between the
pages.
Eliyahu
"Andrew" <An****@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.com... Hi all,
I need som advice. I want to display a textbox that displays a
countdown from say 90 minutes is hh:mm:ss format. I also want it to be displayed
consistently on every page of my system as long as the user is in a
session (ie. user session is 90 mins). The problem I think is that the
countdown tends to restart itself everytime the user refreshes the page, or
re-loads the page ie. moving from one page to another.
How do I do this. Should I use a user control to display the countdown
timer?
Also is it possible to use the TIMER control to write the countdown ?
TIA
Andrew