顺手把这个日历写了一个控件,里在的功能基本上比较全面了,自己留着也是留着,看看谁有需要去拿去用吧。
效果跟下面那个日历的效果一样,只不过用服务器控件封装起来了
ASPX页
1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestDatePicker.aspx.cs" Inherits="WorkJS.TestDatePicker" %>
2
3 <%@ Register Assembly="DatePicker" Namespace="DatePicker" TagPrefix="cc1" %>
4
5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
7 <html xmlns="http://www.w3.org/1999/xhtml" >
8 <head runat="server">
9 <title>无标题页</title>
10 </head>
11 <body>
12 <form id="form1" runat="server">
13 <div>
14 <cc1:Calendar ID="Calendar1" runat="server" FormatString="MM月dd日yyyy年" OverHidden="False" CurrentDate="2008-05-15" CssStyle="Three" ReadOnly="True"></cc1:Calendar>
15 <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
16 <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
17 <br />
18 <br />
19 <cc1:Calendar ID="Calendar2" runat="server" Attach="False" ClearHidden="False" CssStyle="Two"
20 Language="繁体中文" OverHidden="False" Position="False" TypeOut="日"></cc1:Calendar>
21 <asp:DropDownList ID="DropDownList1" runat="server">
22 <asp:ListItem>a</asp:ListItem>
23 <asp:ListItem>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</asp:ListItem>
24 <asp:ListItem></asp:ListItem>
25 </asp:DropDownList></div>
26 </form>
27 </body>
28 </html>
29
DLL文件下载:日历控件
里面的那个xml文件应该都知道是做什么的吧!