jquery datepicker 在gridview中的应用

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="case_doing.aspx.cs" Inherits="case_doing" Theme="sampleTheme"  %>

<link type="text/css" href="styles/css.css" rel="stylesheet" />
<script type="text/javascript" src="Scripts/jquery-1.4.1.js"></script>
<link rel="stylesheet" href="styles/datepicker/jquery.ui.all.css">
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="Scripts/jquery.ui.core.js"></script>
<script src="Scripts/jquery.ui.datepicker.js"></script>
<script>

    $(function () {
        $('.input1').datepicker({ dateFormat: 'yy-mm-dd' });
    });

</script>

 

<asp:TemplateField HeaderText="完成时间" SortExpression="case_finish_date">
                                                                            <EditItemTemplate>
                                                                                <asp:TextBox ID="TextBox9" runat="server"
                                                                                    Text='<%# Bind("case_finish_date") %>' Width="80px"  CssClass="input1" ></asp:TextBox>
                                                                            </EditItemTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Label9" runat="server" Text='<%# Bind("case_finish_date") %>'
                                                                                    Width="80px"></asp:Label>
                                                                            </ItemTemplate>

 

因为本人已将页面的主题更改其中的textbox默认cssclass=‘input1’

故在页面中将除去这段话cssclass=“input1”,这个问题暂时没有解决就是页面中所有的textbox都可使用datepicker

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值