Stonesbg
06-24-2006, 02:27 PM
Hye have a problem i am trying to create popup window for a calendar and i have it all coded and everything kinda works i get the popup window to come up and i can select and item but it will not populate back the the textbox that i am using. I am using 2.0 and it says that the piece of code that i am using is obselete i think this is the cause but i don't know how to re write it have been at this for hours so need a bit of help her is the code anyways that says it is obselete
if(Request.QueryString["textbox"] != null)
{
string strScript = "<script>window.opener.document.forms(0)." + Request.QueryString["textbox"].ToString() + ".value = '";
strScript += CalPopup.SelectedDate.ToString("dd/MM/yyyy");
strScript += "';self.close()";
strScript += "</" + "script>";
RegisterClientScriptBlock("Calendar_ChangeDate", strScript);
}
Hope someone can help also am using c#
if(Request.QueryString["textbox"] != null)
{
string strScript = "<script>window.opener.document.forms(0)." + Request.QueryString["textbox"].ToString() + ".value = '";
strScript += CalPopup.SelectedDate.ToString("dd/MM/yyyy");
strScript += "';self.close()";
strScript += "</" + "script>";
RegisterClientScriptBlock("Calendar_ChangeDate", strScript);
}
Hope someone can help also am using c#