Ajax 控键 CalendarExtender 如何在选择完日期后让他自动消失,而不光是点其他地方才消失谢谢~~!!大家

解决方案 »

  1.   

    是在邦定的TextBox的onmouseout事件,还是在 CalendarExtender 的的onmouseout事件中写让他消失
      

  2.   

    是在onmouseout事件中写让他消失
      

  3.   

    可是 onmouseout 是哪一个控键的事件阿
      

  4.   

    我在 CalendarExtender1 空间绑定的 TextBox1 中加了 onmouseout 事件如:<asp:TextBox ID="TextBox4" runat="server" onmouseout="xxx();"></asp:TextBox>调用如下的 xxx()。function xxx()
    {
       document.getElementById("CalendarExtender1").style.display="none"; 
    }可是结果还是不好使,怎么办
      

  5.   

    其实很简单。CalendarExtender有一个PopupButtonID属性。将它设置为PopupButtonID="TextBox4" 就可以了