My97日期控件My97DatePicker使用(备忘)

前言:

最近老是找不到资料,痛之又痛的情况下,决定好好将所有涉及到的东西通通做个备忘记录。

参考网址:

1、http://www.my97.net/dp/demo/index.htm

2、http://www.mysuc.com/test/My97DatePicker/#m246

使用备忘——

日期:2010-10-30

版本:4.7

功能:两个日期文本框,前者不得大于后者

代码
<tr>
  
<td class="BasicinfoTdLeft w135">
    生效日期
<span class="InputPoint">*</span>
  
</td>
  
<td class="BasicinfoTdRight">
    
<asp:TextBox ID="txtStar" onclick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'txtEnd\')}',readOnly:true,dateFmt:'yyyy-MM-dd'})" Style="margin: 2px 0 0 0; height: 14px;" runat="server"></asp:TextBox>
  
</td>
  
<td class="BasicinfoTdLeft wt">
    失效日期
<span class="InputPoint">*</span>
  
</td>
  
<td class="BasicinfoTdRight">
    
<asp:TextBox ID="txtEnd" onclick="WdatePicker({lang:'zh-cn',minDate:'#F{$dp.$D(\'txtStar\')}',readOnly:true,dateFmt:'yyyy-MM-dd'})" Style="margin: 2px 0 0 0; height: 14px;" runat="server"></asp:TextBox>
  
</td>
</tr>

===========留待继续更新=============

原文地址:https://www.cnblogs.com/lybohe0807/p/1865194.html