B
billy
Ok, here's the situation... I have a user control that contains two
textboxes (one for a from date/time and one for a to date/time) and two
image buttons. The user control itself is supposed to be used on a number
of different ASPX pages (that's why I made it a ASCX). When clicking the
image button, I run simple JavaScript to open another popup ASPX page that
contains a calendar control and two dropdownboxes for the time (hours :
minutes). Once the user selects their date and time on the popup ASPX page,
they then click a linkbutton ("Ok") to close the popup and pass the selected
date and time back to the textbox on the user control, which is part of the
main ASPX page. Make sense? I'm trying to use
window.opener.document.form.textbox.value= to send the value back. I also
tried window.opener.document.form.usercontrol.textbox.value=, and that
didn't work either.
The problem I'm having is that I cannot get the value back from the popup
ASPX form to the textbox on the user control. It seems as if the JavaScript
window.opener method doesn't know how to find the user control on the main
ASPX page.
Does anyone know how to solve such an issue?
Or, does anyone have any better solutions to my design?
Thanks.
textboxes (one for a from date/time and one for a to date/time) and two
image buttons. The user control itself is supposed to be used on a number
of different ASPX pages (that's why I made it a ASCX). When clicking the
image button, I run simple JavaScript to open another popup ASPX page that
contains a calendar control and two dropdownboxes for the time (hours :
minutes). Once the user selects their date and time on the popup ASPX page,
they then click a linkbutton ("Ok") to close the popup and pass the selected
date and time back to the textbox on the user control, which is part of the
main ASPX page. Make sense? I'm trying to use
window.opener.document.form.textbox.value= to send the value back. I also
tried window.opener.document.form.usercontrol.textbox.value=, and that
didn't work either.
The problem I'm having is that I cannot get the value back from the popup
ASPX form to the textbox on the user control. It seems as if the JavaScript
window.opener method doesn't know how to find the user control on the main
ASPX page.
Does anyone know how to solve such an issue?
Or, does anyone have any better solutions to my design?
Thanks.