日期:2014-05-17  浏览次数:20438 次

如何实现Calendar日历控件对数据的查询
前台代码
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
ForeColor="#333333" GridLines="None" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" 
OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" >
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns > 
<asp:BoundField DataField="ID" HeaderText="用户ID" ReadOnly="True" /> 
<asp:BoundField DataField="name" HeaderText="姓名" ReadOnly="true" />
<asp:BoundField DataField="sex" HeaderText="性别" ReadOnly="true" />  
<asp:BoundField DataField="tel" HeaderText="联系方式" ReadOnly="true" />
<asp:BoundField DataField="date" HeaderText="日期" ReadOnly="true" />  
    <asp:TemplateField HeaderText="业务情况">
        <EditItemTemplate>
            <asp:DropDownList ID="DropDownList2" runat="server">
                <asp:ListItem>开通</asp:ListItem>
                <asp:ListItem>未开通</asp:ListItem>
            </asp:DropDownList>
        </EditItemTemplate>
        <ItemTemplate>
            <asp:Label ID="Label1" runat="server" Text='<%# Bind("bus") %>'></asp:Label>
        </ItemTemplate>
    </asp:TemplateField>
<asp:CommandField HeaderText="选择" ShowSelectButton="True" /> 
<asp:CommandField HeaderText="编辑" ShowEditButton="True" /> 
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" /> 
</Columns > 
<RowStyle ForeColor="#000066" /> 
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" /> 
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /> 
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" /> 
</asp:GridView >

        日期选择:<asp:Button ID="Button3" runat="server" BorderStyle="Inset"