M
Mike
Hi,
I have a form with some dynamic controls. I then open a popup calendar and set the selected date back to the "parent" form using this statement:
string script = "<script>window.opener.document.getElementById('" + control.Value + "').innerText = '";
script += myCalendar.SelectedDate.ToString("dd/MM/yyyy") + "'";
script += ";self.close()" ;
script += "</script>";
RegisterClientScriptBlock("test", script);
The problem I am having is that when later accessing the control, the value of that control is still empty. But on the page, the new value is shown.
Does anyone have any idea on what could be wrong?
Thanks
Mike
I have a form with some dynamic controls. I then open a popup calendar and set the selected date back to the "parent" form using this statement:
string script = "<script>window.opener.document.getElementById('" + control.Value + "').innerText = '";
script += myCalendar.SelectedDate.ToString("dd/MM/yyyy") + "'";
script += ";self.close()" ;
script += "</script>";
RegisterClientScriptBlock("test", script);
The problem I am having is that when later accessing the control, the value of that control is still empty. But on the page, the new value is shown.
Does anyone have any idea on what could be wrong?
Thanks
Mike