asp.netʱ¼ä¿Ø¼þÖ®Ó÷¨
¹ØÓÚÐèÒªÓõ½µÄJSÎļþÇëµ½µØÖ·£ºhttp://d.download.csdn.net/down/2387457/taomanmanÃâ·ÑÏÂÔØ;
ÏÂÃæ½éÉÜÆäʹÓ÷½·¨£º
µÚÒ»²½£º
µ½ÎÒÌṩµÄµØÖ·ÏÂÔØJSÎļþ£¬²¢½âѹµ½ÏîĿij¸öĿ¼Ï£¬Äã×Ô¼º¶¨À²¡£
µÚ¶þ²½£º
ÔÚÐèÒªÓõ½Ê±¼ä¿Ø¼þµÄaspxÒ³ÃæÖÐÌí¼Ó¸ÃJSÎļþÖеÄWdatePicker.jsÎļþ¡£
Èç<script src="../JS/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
½ÓמÍÊÇÌí¼ÓÁ½¸öÎı¾¿ò£¬Õâ¸öʱ¼ä¿Ø¼þÊÇÀûÓÃTextBox½øÐиÄÔì¶ø³ÉµÄ£¬Ìí¼Ó´úÂëÈçÏ£º
<asp:panel id="Panel1" style="width: 100%" runat="server" >
Æðʼʱ¼ä<input id="tbStartTime" type="text" runat="server" style="width: 102px" />
½ØÖ¹Ê±¼ä<input id="tbEndTime" type="text" runat="server" style="width: 102px" />
<asp:Button ID="btnQuery" runat="server" Text="²éѯ" onclick="btnQuery_Click" />
</asp:panel>
µÚÈý²½£º
ÔÚºǫ́aspx.csÎļþÖÐÌí¼ÓÈçÏ´úÂ룺
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
AddDateControl();
tbStartTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
tbEndTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
}
}
/// <summary>
/// ÈÕÆÚÊäÈë¿òÉèÖÃ
/// </summary>
private void AddDateControl()
{
tbStartTime.Attributes.Add("class", "Wdate");
tbStartTime.Attributes.Add("onfocus", "new WdatePicker(this,'%Y-%M-%D',false)");
tbEndTime.Attributes.Add("class
Ïà¹ØÎĵµ£º
½ñÔçÓиöÍøÓÑÎʵ½ÎÒÕâÎÊÌ⣬ÒÔǰÎÒ¶¼ÊÇÖ±½ÓÔÚÊý¾Ý¿âÖдæÎļþÃûµÄ£¬»¹Ã»ÓÐÊÔ¹ý´æ´¢ÕûÕÅͼƬµ½Êý¾Ý¿âÖУ¬ÉÏÍøËÑË÷ÁËһϣ¬×Ô¼ºÓÖ²âÊÔÁËÒ»·¬£¬´úÂëÈçÏ£º
½¨Á¢±£´æÍ¼Æ¬µÄ±íµÄSQLÓï¾ä£º
Sql´úÂë < width="14" height="15" src="javascripts/syntaxhighlighter/clipboard_new.swf" pluginspage="http://w ......
Ê×Ïȼòµ¥½éÉÜһϠWCF ÊÇʲô£¬È»ºóÔÙ¶Ô WCF ºÍ Asp.net Web service ×ö¸ö±È½Ï¡£
Windows Communication Foundation (WCF) ÊÇÓÃÓÚ¹¹½¨ÃæÏò·þÎñµÄÓ¦ÓóÌÐòµÄ¿ò¼Ü¡£½èÖú WCF£¬¿ÉÒÔ½«Êý¾Ý×÷ΪÒì²½ÏûÏ¢´ÓÒ»¸ö·þÎñÖÕ½áµã·¢ËÍÖÁÁíÒ»¸ö·þÎñÖÕ½áµã¡£·þÎñÖÕ½áµã¿ÉÒÔÊÇÓÉ IIS ³ÐÔØµÄ³ÖÐø¿ÉÓõķþÎñµÄÒ»²¿·Ö£¬Ò²¿É ......
ÔÚ¿ª·¢Öо³£»áÓöµ½ÕâÑùµÄÇé¿ö£¬ÔÚ²¿Êð³ÌÐòʱΪÁ˱£ÃÜÆð¼û²¢²»½«Ô´´úÂëËæÏîĿһͬ·¢²¼£¬¶øÎÒÃÇ¿ª·¢Ê±µÄ»·¾³Ó벿Êð»·¾³¿ÉÄܲ»Ò»Ö£¨±ÈÈçÊý¾Ý¿â²»Ò»Ñù£©£¬Èç¹ûÔÚ´úÂëÖб£´æÕâЩÅäÖÃÕâЩÐÅÏ¢²¿ÊðʱÐèÒªµ½Óû§ÄÇÀï¸ü¸Ä´úÂëÔÙÖØÐ±àÒ룬ÕâÖÖ²¿Êð·½Ê½·Ç³£Âé·³¡£
ÔÚ.net ÖÐÌṩÁËÒ»ÖÖ±ã½ÝµÄ±£´æÏîÄ¿ÅäÖÃÐÅÏ¢µÄ°ì·¨£¬ÄǾÍÊÇÀûÓÃÅäÖ ......
ÒÔÏÂÊÇϵͳ×Ô¶¯Éú³ÉµÄ»Øµ÷º¯Êý
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.ons ......
asp.net ·¢²¼ÍøÕ¾Ê±ÓÐÈý¸öÑ¡Ï
1¡¢ÔÊÐí¸üдËÔ¤±àÒëÕ¾µã£ºasp.net web Ò³ÃæÍ¨³£°üº¬Á½¸öÒ³Ãæ£¬Ò»¸ö¼´ .aspx Ò³£¬»¹ÓÐÒ»¸ö .aspx.cs Îļþ£¬ºóÒ»¸öÎļþÊÇ»ù±¾Î¯ÍеÄʼþÏìÓ¦Îļþ´úÂ룻´Ë´¦ÔÊÐí¸üдËÔ¤±àÒëÕ¾µãµÄÒâ˼¾ÍÊÇ£º.aspx Ò³¿É¸ù¾ÝÐèÒª½øÐÐÒ»¶¨µÄ¸üУ¬¶ø .aspx.cs ±àÒë³ÉµÄ .dll ±£³Ö²»±ä£»ÁíÍ⣬Èç¹û·¢²¼ÍøÕ¾Ê±Ö» ......