用WdatePicker在asp.net下,点击文本框没反应
<head runat="server">
<script language="javascript" type="text/javascript" src="../Scripts/WdatePicker.js"></script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtStartTime" onfocus="WdatePicker()" runat="server"></asp:TextBox>
</div>
</form>
[解决办法]
<asp:TextBox ID="tbSubContTime" runat="server" CssClass="Wdate2" onfocus="WdatePicker()"></asp:TextBox>
引用写了吗<script language="javascript" type="text/javascript" src="../../Public/Script/My97DatePicker/WdatePicker.js"></script>
[解决办法]
<script language="javascript" type="text/javascript" src="../Scripts/WdatePicker.js"></script>
你确定引用到了吗?
页面里路径最好从网站根目录开始算"/Scripts/WdatePicker.js"
[解决办法]
一般是路径的问题
[解决办法]
<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script><input type="text" id="Bdate1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:100px" />
[解决办法]
估计是路径为吧,你把日历控件放在项目下面,直接拖出去,路径就不会错了!!!你再试试...
[解决办法]