K
Kathy Burke
Hi, I have a textbox and a calendar popup window. I got this from a
posting (sorry, his name escapes me at the moment). It's nice and
simple, so I like it, of course.
Only problem I have is that when the popup closes and puts the control
value (date selected) into the textbox on my main form, I can't get my
onchnage event to fire (i.e., which should load a datagrid).
This is the sub that the calendar pop-up form uses when the date is
selected.
Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Dim strScript As String = "<script>window.opener.document.forms(0)." +
control.Value + ".value = '"
strScript += calDate.SelectedDate.ToString("MM/dd/yyyy")
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock("anything", strScript)
End Sub
I'm sure I'm missing something simple.
Thanks for any insights.
Kathy
posting (sorry, his name escapes me at the moment). It's nice and
simple, so I like it, of course.
Only problem I have is that when the popup closes and puts the control
value (date selected) into the textbox on my main form, I can't get my
onchnage event to fire (i.e., which should load a datagrid).
This is the sub that the calendar pop-up form uses when the date is
selected.
Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Dim strScript As String = "<script>window.opener.document.forms(0)." +
control.Value + ".value = '"
strScript += calDate.SelectedDate.ToString("MM/dd/yyyy")
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock("anything", strScript)
End Sub
I'm sure I'm missing something simple.
Thanks for any insights.
Kathy