Description: After date selection, the previous date is less than the following date, followed by a date greater than or equal to the previous date. Just a little bit to see it:)
~
Weekend dates are not selectable here. The code is as follows:
1"http://www.w3.org/1999/xhtml">2"Server">3<title></title>4<script type="Text/javascript"Src="My97datepicker/wdatepicker.js"></script>5<link type="Text/css"Rel="Stylesheet"href="My97datepicker/skin/wdatepicker.css"/>6<%--<script type="Text/javascript">7 function getborderdate (ID) {8 returndocument.getElementById (ID). value;9 }Ten</script>--%> One A<body> -<form id="Form1"runat="Server"> -<div> the<%--himself to write JS is also possible, since the Mydatepicker control provided there is no need, commented out is their own written JS judgment, but also to achieve its function <br/> -of which: disableddays:[0,6] is the weekend date is not optional <br/> -<input id="predate" class="wdate"Type="text"onclick="var max_date = getborderdate (' nextdate '); Wdatepicker ({maxdate:max_date,disableddays:[0,6]})"/> - ~ +<input id="nextdate" class="wdate"Type="text"onclick="var min_date = getborderdate (' predate '); Wdatepicker ({mindate:min_date,disableddays:[0,6]})"/>--%> -<input id="predate" class="wdate"Type="text"onclick="Wdatepicker ({maxdate: ' #F {$dp. $D (\ ' nextdate\ ')} ', disableddays:[0,6]})"/> + ~ A<input id="nextdate" class="wdate"Type="text"onclick="Wdatepicker ({mindate: ' #F {$dp. $D (\ ' predate\ ')} ', disableddays:[0,6]})"/> at</div> -</form> -</body> -ASP. NET uses my97 DatePicker to achieve the scoping of two dates before and after