怎么样单击文件框之后自动弹出日期控件并且在文件框中显示你在日期控件中选择的日期(日期控件是VS2003中自带的日期控件)

解决方案 »

  1.   

    首先建立日历页面拖动日历控件,设置样式。在cs文件 protected void Calendar1_SelectionChanged(object sender, EventArgs e)
        {
            Response.Write("<script language=javascript>window.returnValue='" + Calendar1.SelectedDate.ToShortDateString() + "';window.close();</script>"); 
            
        }
    在引用页面
    function openSelectStartDate()
    {
    var returnValue=window.showModalDialog("Calendar.aspx",window,"dialogWidth:300px;dialogHeight:230px;status:no;help:no;scroll:no;center:yes;");
            document.all('ctl00_ContentPlaceHolder1_txt_StartDate').value=returnValue; 
    }
      

  2.   

    http://www.yangfei214.blog.tom.com 暂时好像无法访问这个网站地址