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

Asp.net ³¤ÎÄÕ·ÖÒ³

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+);", "", RegexOptions.IgnoreCase);
Htmlstring.Replace(" <", "");
Htmlstring.Replace(">", "");
Htmlstring.Replace("\r\n", "");
Htmlstring = HttpContext.Current.Server.HtmlEncode(Htmlstring).Trim();
return Htmlstring;
}
public string OutputBySize(string p_strContent)//·ÖÒ³º¯Êý
{
string m_strRet = "";
int m_intPageSize = 2500;//ÎÄÕÂÿҳ´óС
int m_intCurrentPage = 1;//ÉèÖõÚһҳΪ³õʼҳ
int m_intTotalPage = 0;
int m_intArticlelength = NoHTML(p_strContent).Length;//ÎÄÕ³¤¶È
if (m_intPageSize &


Ïà¹ØÎĵµ£º

IIS7ÉÏASP.net V1.1µÄÅäÖÃÏê½â ÊÊÓÃ(Vista£¬win 7)

 ÏµÍ³»·¾³:
Ê×ÏȺͻúÆ÷Ó²¼þÎÞ¹Ø,ÕâÊÇVista°æµÄ½Ì³Ì,Ö»ÒªÄãµÄ»úÆ÷ÄÜÔËÐÐVista,OK,Ч¹ûÒ»Ñù.
Vista°æ±¾:Ultimate Ò²½ÐVistaÆì½¢°æ
ϵͳ״̬:È«ÐÂ,ÒÑ°²×°IIS
×¢Òâ:VistaĬÈÏÇé¿ö²¢Î´°²×°IIS,¿ÉÒÔÔÚ¿ØÖÆÃæ°åÀïÑ¡°²×°IIS,Õâ¸öÈç¹ûÓÐÎÊÌâµ¥¶ÀÁªÏµÎÒ,½ñÌì²»½²Ëü.
----------------------------------------------------- ......

ASP.NET

      BulletedList ¿Ø¼þ´´½¨Ò»¸öÎÞÐò»òÓÐÐò£¨±àºÅµÄ£©µÄÏîÁÐ±í£¬ËüÃÇ·Ö±ð³ÊÏÖΪ HTML ul »ò ol ÔªËØ¡£
 
1¡¢·½°¸
BulletedList ¿Ø¼þÓÃÓÚÖ´ÐÐÒÔϲÙ×÷£º
·Ö¸¶¨ÁбíÖÐÏî¡¢ÏîÄ¿·ûºÅ»ò±àºÅµÄÍâ¹Û¡£
·¾²Ì¬¶¨ÒåÁбíÏî»òͨ¹ý½«¿Ø¼þ°ó¶¨µ½Êý¾ÝÀ´¶¨ÒåÁбíÏî¡£
·ÏìÓ¦Óû ......

Asp.netʵÓü¼ÇÉд°¿ÚÖдò¿ªÒ³ÃæAPI


1.ÔÚд°¿ÚÖдò¿ªÒ³Ãæ
   
ÎÒÃǾ­³£ÐèÒªÔÚµã»÷ij¸öButtonµÄʱºò´ò¿ªÒ»¸öеÄÒ³Ã棬¶øÇÒÓÉÓÚÓ¦ÓõÄÐèÒª£¬ÎÒÃÇÓÖ²»ÄÜʹÓ󬼶Á¬½Ó»òÕßLinkButtonÀ´´úÌæÕâ¸ö
Button£¬ÓÚÊÇÎÒÃÇÖ»ÓÐÔÚButtonµÄClickʼþÖнøÐÐÐÂÒ³ÃæµÄ´ò¿ª¹¤×÷¡£ÎÒ½«Õâ¸ö¹¤×÷·â×°³ÉÒ»¸öAPI£¬ÈçÏ£º
 1
OpenWindowInNewPage
#region ......

ASP.NETÈý²ã½á¹¹ÓëMVCģʽµÄÇø±ð

 ÕâÁ½Õß±¾Éí½²µÄÊDz»Í¬·½ÏòÓë½Ç¶ÈµÄÎÊÌ⣬ÔÚʵ¼ÊÓ¦ÓÃÖÐËûÃǵÄÈ·´æÔÚһЩÏàËƵÄÌص㣬ÔںܶàÊé¼®ÖÐҲûÓÐÉîÈë½²½â£¬ÒÔÖÂÓÚÔì³ÉÀ§»ó£¬ÎªÁ˸üºÃµÄÀí½âËûÃÇ£¬ÄǾÍÀ´ËµËµÇø±ð°É¡£
¡¡¡¡Ê×ÏÈN²ã½á¹¹ÊÇÒ»ÖÖÈí¼þ³éÏóµÄ²ã´Î½á¹¹£¬ÊǶԸ´ÔÓÈí¼þµÄÒ»ÖÖ×ÝÏòÇз֣¬Ã¿Ò»²ã´ÎÖÐÍê³ÉͬһÀàÐ͵IJÙ×÷£¬ÒԱ㽫¸÷ÖÖ´úÂëÒÔÆäÍê³ÉµÄʹÃü×÷ÎªÒ ......

ASP.NETÉú³ÉËæ»úÃÜÂë

 ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstringMakePassword(st ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ