On yuor code behind you can add this, to pass info to your parent page, using javascript. Let's say you calendar picker is called (calPicker) and a hidden form input element in your parent page, called yyyymmddSelected:
______________________
Private Sub calPicker_SelectionChanged
Dim js As New System.Text.StringBuilder
js.Append("<script language=""javascript"">")
js.Append("opener.yyyymmdd
js.Append("</script>")
Response.Write(js.ToString
End Sub
__________
I am usnig StringBuilder instead of regular string concatenation for performance reason. Hope this helps.
Main Topics
Browse All Topics





by: aspnetdevPosted on 2006-10-11 at 12:32:59ID: 17709945
i am using following script on button click of pop up calendar
ument.form s(0).all(\ "" + txtData.Value + "\").value = '"; teString() + "';"; up('" + txtData.Value + "');"; "anything" ,strScript );
string strScript = "<script>window.opener.doc
strScript += cal.SelectedDate.ToShortDa
if (Request["timeline"] == "1")
{
strScript += "window.opener.adddirtypop
}
strScript += "self.close()";
strScript += "</" + "script>";
RegisterClientScriptBlock(
i my self dont know what and from where txtData.Value is coming i just want a function which when called copies the selected calendar date to the text box on main page