Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

ASP.NETÖÐÈÃͼƬÒÔ¶þ½øÖƵÄÐÎʽ´æ´¢ÔÚÊý¾Ý¿âÖÐ


 ½ñÔçÓиöÍøÓÑÎʵ½ÎÒÕâÎÊÌ⣬ÒÔÇ°ÎÒ¶¼ÊÇÖ±½ÓÔÚÊý¾Ý¿âÖдæÎļþÃûµÄ£¬»¹Ã»ÓÐÊÔ¹ý´æ´¢ÕûÕÅͼƬµ½Êý¾Ý¿âÖУ¬ÉÏÍøËÑË÷ÁËһϣ¬×Ô¼ºÓÖ²âÊÔÁËÒ»·¬£¬´úÂëÈçÏ£º
½¨Á¢±£´æͼƬµÄ±íµÄSQLÓï¾ä£º
 
Sql´úÂë < width="14" height="15" src="javascripts/syntaxhighlighter/clipboard_new.swf" pluginspage="http://w ......

ASP.NETÖÐÈÃͼƬÒÔ¶þ½øÖƵÄÐÎʽ´æ´¢ÔÚÊý¾Ý¿âÖÐ


 ½ñÔçÓиöÍøÓÑÎʵ½ÎÒÕâÎÊÌ⣬ÒÔÇ°ÎÒ¶¼ÊÇÖ±½ÓÔÚÊý¾Ý¿âÖдæÎļþÃûµÄ£¬»¹Ã»ÓÐÊÔ¹ý´æ´¢ÕûÕÅͼƬµ½Êý¾Ý¿âÖУ¬ÉÏÍøËÑË÷ÁËһϣ¬×Ô¼ºÓÖ²âÊÔÁËÒ»·¬£¬´úÂëÈçÏ£º
½¨Á¢±£´æͼƬµÄ±íµÄSQLÓï¾ä£º
 
Sql´úÂë < width="14" height="15" src="javascripts/syntaxhighlighter/clipboard_new.swf" pluginspage="http://w ......

asp.net ÑéÖ¤ÕýÔò±í´ïʽÊÕ²Ø

ÕûÊý»òÕßСÊý£º^[0-9]+\.{0,1}[0-9]{0,2}$
Ö»ÄÜÊäÈëÊý×Ö£º"^[0-9]*$"¡£
Ö»ÄÜÊäÈënλµÄÊý×Ö£º"^\d{n}$"¡£
Ö»ÄÜÊäÈëÖÁÉÙnλµÄÊý×Ö£º"^\d{n,}$"¡£
Ö»ÄÜÊäÈëm~nλµÄÊý×Ö£º¡£"^\d{m,n}$"
Ö»ÄÜÊäÈëÁãºÍ·ÇÁ㿪ͷµÄÊý×Ö£º"^(0|[1-9][0-9]*)$"¡£
Ö»ÄÜÊäÈëÓÐÁ½Î»Ð¡ÊýµÄÕýʵÊý£º"^[0-9]+(.[0-9]{2})?$"¡£
Ö»ÄÜÊäÈëÓÐ1~3λСÊýµÄ ......

Asp.Netǰ̨µ÷Óúǫ́±äÁ¿

1.Asp.NetÖм¸ÖÖÏàËƵıê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspxÖУº < %= a ......

asp.net C# ½«Êý¾Ýµ¼³öµ½Execl»ã×Ü


asp.netÖе¼³öExeclµÄ·½·¨£º
ÔÚasp.netÖе¼³öExeclÓÐÁ½ÖÖ·½·¨£¬Ò»ÖÖÊǽ«µ¼³öµÄÎļþ´æ·ÅÔÚ·þÎñÆ÷ij¸öÎļþ¼ÐÏÂÃ棬Ȼºó½«ÎļþµØÖ·Êä³öÔÚä¯ÀÀÆ÷ÉÏ£»Ò»ÖÖÊǽ«ÎļþÖ±½Ó½«ÎļþÊä³öÁ÷д¸øä¯ÀÀÆ÷¡£ÔÚResponseÊä³öʱ£¬t·Ö¸ôµÄÊý¾Ý£¬µ¼³öexeclʱ£¬µÈ¼ÛÓÚ·ÖÁУ¬nµÈ¼ÛÓÚ»»ÐС£
1¡¢½«Õû¸öhtmlÈ«²¿Êä³öexecl
´Ë·¨½«htmlÖÐËùÓеÄÄÚÈÝ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ