pop up calendar not showing up in IE

Posted on 2005-04-25
Last Modified: 2006-11-18

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"]=@"'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
Question by:brdrok
    LVL 1

    Accepted Solution

    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 ='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...
    LVL 7

    Author Comment

    heya...thanks for all the effort....turned out OS had to re-install IE anyways...and works now... =)

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
    Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now