-----Original Message-----
Dear ASP.NET Programmers,
I am using a javascript to display popup calendar and return the selected
date to the control in the calling form. No problems here. When I use this
script for a control that is created in datalist edit mode, the popup
calendar doesn't return the date because it cannot find the control (or I
think so). Is there any way to work around this? I use the following code:
<script language="Javascript">
function GetDate(ctrlName)
{
childWindow = window.open('popup.aspx?formName=' +
document.forms[0].name + '&ctrlName=' + ctrlName, "PopUpCalendar",
"width=350, height=230, top=200, left=200, toolbars=no, scrollbars=no,
status=no, resizable=no");
}
function CloseWindow()
{
childWindow.close()
}
</script>
<script language="JavaScript">
<A href="javascript:GetDate('txtDischargeDate')"><IMG
src="images/smallcalendar.gif" border="0"></A>
Thanks in advance,
Buran
.