asp.net¶ÔÓÚ³¤ÆªÎÄÕ½øÐзÖÒ³
¶ÔÓÚÎÄÕÂƪ·ù±È½Ï³¤µÄ£¬¾Í±ØÐë²ÉÓ÷ÖÒ³ÏÔʾ¡£ÔÚ.netÖжԳ¤ÆªÎÄÕ·ÖÒ³Ò»°ãÓÐ2ÖÖ·½·¨£¬µÚÒ»ÖÖ¾ÍÊÇÏȼÆËãºÃÒ»Ò³µÄÎÄ×Ö³¤¶ÈÊǶàÉÙ£¬È»ºó°ÑÎÄÕÂ×ܵij¤¶È³ýÉèÖúõĵ¥Ò³ÎÄ×Ö³¤¶È¼°¿É£¬ÓÃÕâ·½·¨¿ÉÒÔ¼õÉÙÈÏΪ½øÐзÖÒ³µÄ·±Ëö£¬µ«ÊÇÕâÑù·ÖÒ³³öÀ´µÄ¿ÉÄܲ»ÊǺÜÕýÈ·£¬ÒòΪ²»ÄÜ´ïµ½ÏëÔÚijЩÌصãλÖýøÐзÖÒ³¡£µÚ¶þÖÖ¾ÍÊÇͨ¹ýÈËΪºÍ³ÌÐòʵÏֵġ£ÓÉÈËÔÚÐÂÎÅÌí¼ÓµÄʱºòÔÚÐèÒª·ÖÒ³µÄµØ·½ÊäÈëÖ¸¶¨µÄ·ÖÒ³·ûºÅ£¨Ö÷ÒªÊÇÔÚÎÄÕÂÖв»³£¼ûµÄ·ûºÅ±ÈÈç$$µÈ£©£¬È»ºó³ÌÐòÔÚͨ¹ýÖ¸¶¨µÄ·ÖÒ³·ûºÅ½øÐзÖÒ³£¬ÕâÑù¾Í¿ÉÒÔ×öµ½ÏëÔÚÄÄ·ÖÒ³¾ÍÔÚÄÄ·ÖÒ³ÁË¡£¶ø±¾ÎÄÒ²ÊÇʹÓõĵڶþÖÖ·½·¨£¬ÒÔÏÂÊÇc#´úÂëƬ¶Î:
public string NoHTML(string Htmlstring) //È¥³ýHTML±ê¼Ç
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @" <script[^>]*?>.*? </script>", "", RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Regex.Replace(Htmlstring, @" <(.[^>]*)>", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"([\r\n])[\s]+", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"-->", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @" <!--.*", "", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(quot|#34);", "\"", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(amp|#38);", "&", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(lt|#60);", " <", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(gt|#62);", ">", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(nbsp|#160);", " ", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(iexcl|#161);", "\xa1", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(cent|#162);", "\xa2", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(pound|#163);", "\xa3", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&(copy|#169);", "\xa9", RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring, @"&#(\d+);",
Ïà¹ØÎĵµ£º
ASP.NETÈí¼þ¹¤³ÌʦÃæÊÔÌâ
Ò»¡¢Ñ¡ÔñÌâ
1. int[][] myArray3=new int[3][]{new int[3]{5,6,2},new int[5]{6,9,7,8,3},new int[2]{3,2}}; myArray3[2][2]µÄÖµÊÇ£¨£©¡£
A. 9
B. 2
C. &n ......
ÔÚÏàͬ×Ö·û´®µÄÐí¶à²Ù×÷ÉÏ£¬Ê¹ÓÃStringBuilderÀà»á±ÈʹÓÃString¶ÔÏó¸üÓÐЧÂÊ¡£
µ±Äã¶ÔÒ»¸östring¶ÔÏó¸³ÖµÊ±£¬Õâʱ»áÉú³ÉÒ»¸öÕâ¸ö¶ÔÏóµÄ¸±±¾£¬Èç¹ûÄ㸳ֵ¶à´ÎµÄ»°ÔÚϵͳÖоͻᱣ´æ¶à¸öÕâ¸ö¶ÔÏóµÄ¸±±¾£¬»á¶Ôϵͳ×ÊÔ´Ôì³ÉºÜ´óµÄÀË·Ñ£¬µ«ÊÇStringBuilder²»»á³öÏÈÉÏÊöÇé¿ö
StringÊý¾ÝÀàÐÍ´ú±íµÄ ......
×î½ü×öÁËÒ»¸öÃâ·Ñ·¢¶ÌÐŵÄСÍøÕ¾(http://freesms.cloudapp.net/)£¬µ«·¢ÏÖ×î½üÓÐÈËÆƽâÁËÎÒµÄÑéÖ¤Â룬ÒÔÿ3Ãë/ÌõµÄËÙ¶ÈÓÃÎҵĶÌÐÅ·þÎñÀ´·¢ËûµÄ¹ã¸æ¡£¸ü»»ÑéÖ¤Âë³ÌÐòºÍ¹ýÂ˹ؼü×ÖÖ»ÊÇÖα겻Öα¾µÄ·½·¨£¬ÎªÁ˳¹µ××èÖ¹´ËÀàʼþµÄ·¢Éú£¬ÎÒÃÇ»¹ÊÇÀ´¿´Ò»ÏÂÔõÑùͨ¹ýÓÅ»¯³ÌÐòÀ´ÊµÏÖ¡£
& ......
public static bool AddTbmember(Tbmember member, string regip)
{
bool check = false;
try
{
SqlCommand sqlcommnad = new SqlCommand("Pro_AddUsers", sqlconn.GetConn());
sqlcommnad.CommandType = CommandType.StoredProcedure; ......
asp.netÖÐÈçºÎ½øÐÐurlÖØд£¬½ñÌìÑо¿ÁËÒ»ÌìÕâ¸öÎÊÌâ
ÏëʵÏÖÖîÈ磺http://www.51cto.com/2008/2/2
http://www.51cto.com/default.html
µÈÕâÖÖurl
µ±È»£¬³ÌÐòÖ±½ÓÉú³É¾²Ì¬Ò³Ãæ¿ÉÒÔʵÏÖµÄ
µ«ÊÇÄÇÑùÒªÉú³ÉºÜ¶àÕâÖÖÒ³ÃæÒÔ¼°Îļþ¼Ð
¶øÇÒÔÚÊý¾ÝÁ¿´óµÄÇé¿öÏÂÉú³ÉÊǺÜÀË·Ñʱ¼äµÄ
ÔÚÕâÖÖÇé¿öϾÍҪʵÏÖurlÖØдÁË£¬µ±È»¾ ......