问题描述
首先给版主提个小建议:如何自定义查找有用的信息,是我没找到入口还是根本没有查询功能,如我想在ASP.NET论坛内部查找有关my97控件的内容,在哪里可以实现?言归正传,我在网页中引用了以下内容,wdatepicker.js文件也存放在app_datamy97目录中,<scriptlanguage="javascript"type="text/javascript"src="app_data/my97/WdatePicker.js"></script><asp:TextBoxID="TextBox1"runat="server"onclick="WdatePicker({isShowWeek:true})"></asp:TextBox><asp:TextBoxID="TextBox2"runat="server"onClick="WdatePicker()"></asp:TextBox>在这两个控件中,怎么用鼠标点击都没有反应,是哪里错了?*******************************************************************************<%@PageLanguage="C#"AutoEventWireup="true"enableSessionState="true"CodeFile="JHAutoKnittingDepartment.aspx.cs"Inherits="_Default"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><scriptlanguage="javascript"type="text/javascript"src="app_data/my97/WdatePicker.js"></script><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>数据</title></head><bodystyle="color:#000000"><formid="form1"runat="server"><div><tablestyle="width:900px;height:1px;table-layout:auto;left:0px;vertical-align:middle;line-height:normal;font-family:'TimesNewRoman';position:static;top:0px;border-collapse:separate;text-align:center;margin:auto;"title="工人生产数据"><tr><tdcolspan="8"style="text-align:center;font-size:large;height:50px;"><strong><spanstyle="font-family:黑体">公司</span><br/>JinHuiIndustrial(HuiZhou)Co,Ltd</strong></td></tr><tr><tdstyle="text-align:left;height:21px;width:1124px;";align="left"><strong>电机部AutoKnitting </strong><ahref="Default.aspx"><strong>返回主页MainPage</strong></a><br/><br/><spanstyle="color:#3300ff">注意:织机状态与织片数量来自于FMIS及岛精系统,其准确性由岛精输出决定,且数据输出时间为次日下午,所以数据显示会有所延迟</span></td></tr><tr><tdstyle="text-align:left;width:1124px;height:6px"><divstyle="text-align:center"><tablestyle="width:1000px;font-weight:bold;"><tr><tdstyle="font-size:small;font-family:'TimesNewRoman';height:21px;font-weight:normal;text-transform:none;font-style:normal;font-variant:small-caps;"colspan="4">产量输出形式</td><tdstyle="width:160px;font-size:small;font-family:'TimesNewRoman';height:21px;font-weight:normal;text-transform:none;font-style:normal;font-variant:small-caps;">订单号码</td><tdstyle="width:140px;font-size:small;font-family:'TimesNewRoman';height:21px;font-weight:normal;text-transform:none;font-style:normal;font-variant:small-caps;">开始日期</td><tdstyle="width:140px;font-size:small;font-family:'TimesNewRoman';height:21px;font-weight:normal;text-transform:none;font-style:normal;font-variant:small-caps;">结束日期</td><tdstyle="width:80px;font-size:small;font-family:'TimesNewRoman';height:21px;font-weight:normal;text-transform:none;font-style:normal;font-variant:small-caps;"> </td></tr><tr><tdstyle="width:120px;height:26px;"><asp:RadioButtonID="RadioButton1"runat="server"GroupName="choice"Text="按机器"/></td><tdstyle="width:120px;height:26px;"><asp:RadioButtonID="RadioButton4"runat="server"GroupName="choice"Text="按工人"/></td><tdstyle="width:120px;height:26px;"><asp:RadioButtonID="RadioButton2"runat="server"Checked="True"GroupName="choice"Text="按款式"/></td><tdstyle="width:120px;height:26px;"><asp:RadioButtonID="RadioButton3"runat="server"GroupName="choice"Text="按疵点"/></td><tdstyle="width:160px;height:26px;"><asp:TextBoxID="TxtSono"runat="server"Width="142px"Wrap="False"></asp:TextBox></td><tdstyle="width:140px;height:26px;"><asp:TextBoxID="txtDateFrom"runat="server"Width="98px"Wrap="False">2014-11-01</asp:TextBox></td><tdstyle="width:140px;height:26px;"><asp:TextBoxID="txtDateEnd"runat="server"Width="94px"Wrap="False">2014-11-05</asp:TextBox></td><tdstyle="width:80px;height:26px;"><asp:ButtonID="btnAutoKnittingDepartmentOK"runat="server"Text="OK"Width="65px"OnClick="btnAutoKnittingDepartmentOK_Click"/> </td></tr></table></div></td></tr><tr><tdcolspan="8";style="height:600px;width:97px;"align="center"valign="top"><br/> <br/> <br/> <br/><asp:TextBoxID="TextBox1"runat="server"onclick="WdatePicker({isShowWeek:true})"></asp:TextBox><asp:TextBoxID="TextBox2"runat="server"onClick="WdatePicker()"></asp:TextBox> <br/> <br/> </td></tr><tr><tdcolspan="8"style="height:54px"><spanstyle="font-size:14pt;color:#3300ff;font-family:新宋体">工艺工程部.2015</span></td></tr></table></div></form></body></html>********************************************************************************
解决方案
解决方案二:
不要把脚本文件放在app_data下面,访问不了的
解决方案三:
js文件换个位置放置<scriptsrc="../js/My97DatePicker/WdatePicker.js"type="text/javascript"></script>使用<inputtype="text"id="iDate"runat="server"style="width:150px"onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"class="Wdate"value="2015-01-08"/>