好像calendar控件可以,但我不知道怎么设置,又没时间去研究代码。哪位大哥有现成的控件介绍一个嘛,谢啦

解决方案 »

  1.   

    http://blog.csdn.net/21aspnet/archive/2007/05/14/1607712.aspx
      

  2.   

    http://community.csdn.net/Expert/topic/5593/5593257.xml?temp=.6524011
    看看这个!
      

  3.   

    3.0正式版更新和修正的内容1.优化了速度和内存占用
    2.增加realValue 的格式设置
    3.增强日期范围限制
    可以使用#year# #month# #day# #lastDay#
    如:本月最后一天#year#-#month#-#lastDay#
    明年今天(注意有运算的地方,比如+1,必须用{}) : {#year#+1}-#month#-#day#
    函数 #F{function}
    比如用另一个框(id是test1)的值作为最小日期,则 MINDATE="#F{$('test1').value}"
    4.当日期格式设置为 %h:%m:%s 只有时间选择了
    5.增加年份月份导航,增加清空按钮
    6.增加显示位置设置(上面 下面 自动(默认))
    7.增加文件包路径设置(在wdatepicker.js文件里,默认为空,程序会自动计算路径)
    8.增加自定义触发事件,可以在日期框添加属性 onpicked="function(){}" 来自定义触发事件
    9.增加多语言自动选择功能,系统会根据用户浏览器语言自动选择 简体 繁体 和英文修正抖屏
    修正在XHTML 1.0下不兼容的问题
    修正2007-3-31 修改成2月份时变为2007-2-31的bug
    修正frame中跳转时没销毁的bug
    修正css路径,不必将文件包放根目录下了如果觉得好,务必顶一下哦!演示地址:http://www.waytop.net/my97/datepicker/3.0/demo/index.htm
    下载地址:http://www.waytop.net/my97/datepicker/My97DatePicker3.0.rar主机不稳定,如果上面的地址进不去,您也可以到BLOG下载,我会随时更新可用的地址:http://blog.csdn.net/My97/
      

  4.   

    这个控件真的很不错.很好用:
    下载地址:http://www.waytop.net/my97/datepicker/My97DatePicker3.0.rar<head runat="server">
        <title>无标题页</title>
    <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    <style>
    *{font-size:9pt;line-height:20px}
    .title{font-size:16px;color:#0000FF;font-weight:bold}
    .con{margin-left:15px;}
    .STYLE1 {color: #FF0000}
    .STYLE2 {color: #0000FF}
    .STYLE3 {color: #009900}
    </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <input class="Wdate" type="text"  onfocus="new WdatePicker(this,'%Y-%M',true)"  id="Text1" runat="server"/>
            <br />
            <br />
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
            <br />
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></div>
        </form>
    </body>
    </html>protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = Text1.Value;
        }
      

  5.   

    不要年月的自己做两个DropDown好了,就是不太好看