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

asp.net ÆÁ±Î Ö»ÄÜ ÊÇÊý×Ö

 //Êý×Ö×Ö·û
       public static string KeepNum(string str)
       {
           char[] tmp = new char[str.Length];
           char[] s = str.ToCharArray();
           for (int i = 0, j = 0; i < str.Length; i++)
           {
               if (s[i] >= '0' && s[i] <= '9')
               {
                   tmp[j] = s[i];
                   j++;
               }
           }
           return new string(tmp);
       }
<input type="text" id="mobile" runat="server" maxlength="12" onkeyup="value=value.replace(/[^\d]/g,'')" />


Ïà¹ØÎĵµ£º

ASP.NET(C#)³£ÓôúÂë30Àý

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......

ÓÃAsp.netÖÆ×÷¶¥²¿µ¼º½¿Ø¼þ

Ò»¡¢Ð§¹û¼ò½é
¡¡¡¡µ±µã»÷Ò»¼¶À¸Ä¿Ê±£¨ÈçÊ×Ò³£©£¬±»µã»÷µÄÒ»¼¶À¸Ä¿µÄµ¥Ôª¸ñ±³¾°É«·¢Éú±äÉ«£¬Èç¹û¸ÃÒ»¼¶À¸Ä¿ÏÂÓжþ¼¶À¸Ä¿£¬Ôò»áÔÚÏÂÒ»ÐÐÏÔʾ³öÀ´£¬·ñÔò¶þ¼¶À¸Ä¿ÕâÒ»Ðв»»áÏÔʾÈκζ«Î÷£¬µ«»áÕ¼Ò»¶¨µÄ¸ß¶È¡£µ±µã»÷¶þ¼¶À¸Ä¿Ê±£¬ÆäËùÊôµÄÒ»¼¶À¸Ä¿µ¥Ôª¸ñ±³¾°É«·¢Éú±ä»¯£¬Í¬Ê±±»µã»÷µÄ¶þ¼¶À¸Ä¿Ãû³Æ»á¼Ó´Ö£¬²¢ÔÚǰ·½¼ÓÒ»¸ö“¡ ......

Asp.Net 4.0 ÐÂÌØÐÔ ÏµÁÐ Ö®Ò» ´ÓÒ³Ãæ±ê¼Ç˵Æð

VS2010ÔÚ4Ô·ÝÒѾ­Õýʽ·¢²¼ÁË£¬Asp.Net 4.0¸øÎÒ´øÀ´ÁËһЩÐµĶ«Î÷¡£ÌåÑéÒ»°Ñ¡£
1. ´ÓÒ³Ãæ±ê¼Ç<%%>˵Æð
2. Asp.Net 4.0 ÖпÉÒÔÓÃ×Ô¶¨ÒåµÄProvider×öOutputCache ÁË
3. SEOÔöǿ֧³ÖMetaKeywords£¬ºÍMetaDescription£¬RedirectPermanant
4. SEOÔöǿ֮URL Routing
5. Êä³ö¸ü´¿¾»µÄHtml´úÂ룬ViewStateModeºÍClientI ......

ת ASP.Net »ñÈ¡ÎļþµÄ·¾¶

Ò»¡¢»ñÈ¡µ±Ç°ÎļþµÄ·¾¶
1.   System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
     »ñȡģ¿éµÄÍêÕû·¾¶£¬°üÀ¨ÎļþÃû¡£
2.   System.Environment.CurrentDirectory
     »ñÈ¡ºÍÉèÖõ±Ç°Ä¿Â¼(¸Ã½ø³Ì´ÓÖÐÆô¶¯µÄĿ¼)µÄÍêÈ«ÏÞ¶¨Ä¿Â¼¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ