pop up calendar not showing up in IE


need some help regarding my pop up calendar.  My pop up calendar does not show up at all on IE.  I am using ASP.Net (C#).  My IE version is IE 6.0.2800.  Works great on other people's browers just not mine.

below is the code that I put outside of my Page_Load Event.

btnCalendar.Attributes["onClick"]=@"javascript:calendar_window=window.open('Calendar.aspx?formname=frmAddOrders.txtDueOn', 'calendar_window', 'width=200, height=200'); calendar_window.moveTo(420, 285);   calendar_window.focus(); return true;";

Probably should note that I installed the script debugger.

thanks in advance
Who is Participating?
fen2009Connect With a Mentor Commented:
Hi,.. i provide U with some codes that i have tried it out before.... it can work... (i find out through the web)

C# Code:
private void CalVivek_SelectionChanged(object sender, System.EventArgs e)
   if (Request.QueryString["textbox"] != "")
      string strScript = "<SCRIPT>window.opener.document.forms(0)." +
                    Request.QueryString["textbox"].ToString() + ".value = '";
      strScript += CalVivek.SelectedDate.ToString("MM/dd/yyyy");
      strScript += "';self.close()";
      strScript += "</" + "script>";
      RegisterClientScriptBlock("Calendar_ChangeDate", strScript);

JScript Code:

var popUp;

function OpenCalendar(idname, postBack)
   popUp = window.open('Calendar.aspx?formname=' +
                                     document.forms[0].name +
                                     '&id=' + idname + '&selected=' +
                                      document.forms[0].elements[idname].value +
                                      '&postBack=' + postBack, 'popupcal',
function SetDate(formName, id, newDate, postBack)
 eval('var theform = document.' + formName + ';');
theform.elements[id].value = newDate;
if (postBack) __doPostBack(id,'');

Hope that the above codes can help U...
brdrokAuthor Commented:
heya...thanks for all the effort....turned out OS crashed...so had to re-install IE anyways...and works now... =)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.