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

ASP.NETÈ¥µôHTML±ê¼Ç

using System;
using System.Web;
using System.Text.RegularExpressions;
public static string NoHTML(string Htmlstring)  
  {  
   //ɾ³ý½Å±¾  
   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   = &nbs


Ïà¹ØÎĵµ£º

asp.net ajax, ASPxCallBackѧϰ

----------------------ModalPopupExtender
D:\sourceforge\asp.net\AjaxControlToolkit_net20\SampleWebSite\ModalPopup\ModalPopup.aspx
// linkbutton1Ôö¼ÓÀ©Õ¹ModalPopupExtenderÊôÐÔ:
<asp:LinkButton ID="LinkButton1" runat="server" Text="Click here to change the paragraph styl ......

×÷ΪASP.NET¿ª·¢ÈËÔ±±ØÐëÑø³ÉµÄ±à³ÌÏ°¹ß

ÈÃÎÒÃǵijÌÐòдµÃ¸ü¼ÓƽÒ×½üÈË£¬¸ü¼ÓÉú¶¯¶ÔÎÒÃǵıà³ÌÊÇ´óÓÐÒæ´¦µÄ¡£¶ÔÎÒÃǵijÌÐòѧϰҲÄÜÆðµ½Ê°빦±¶µÄ×÷Óᣱà³Ì¹ý³ÌÖÐ×ñÊصIJ»³ÉÎĵıê×¼£¬¶ÔÓÚÎÒÃǺÍËûÈ˵Ľ»Á÷ºÍ×Ô¼ºµÄÔÙѧϰ¶¼ÊÇÓÐÒæÎÞº¦µÄ¡£±Ï¾¹ÓÐʱÎÒÃÇдµÄ³ÌÐò²»ÊÇÖ»¸ø×Ô¼º¿´µÄ£¬Ò²²»ÊÇһʱÐËÆ𣬲»¹ÜÒÔºó¡£ ºÃµÄ±àÂë¿ÉʹԴ´úÂëµÄ¿É¶ÁÐÔÇ¿ÇÒÒâÒåÇå³þ£¬ÓëÆäËûÓïÑÔÔ ......

ASP.NET¿ª·¢ÈËÔ±ÐèҪѧϰASP.NET MVCô£¿

×î½ü¼¸ÖÜ£¬ÔÚ²©¿Í¡¢TwitterºÍÂÛ̳ÉÏÈç»ðÈçݱµØÕ¹¿ªÁËÒ»³¡ÌÖÂÛ¡£ÌÖÂÛµÄÄÚÈÝÊÇ£º¿ª·¢ÈËÔ±ÊÇ·ñÓ¦¸ÃʹÓûòѧϰASP.NET MVC¡£´Ó“²»ÍƼöѧϰ”µ½“ËùÓÐASP.NET¿ª·¢ÈËÔ±¶¼Ó¦¸Ãѧϰ”£¬¸÷ÖÖ²»Í¬µÄ¹Ûµã²ã³ö²»Çî¡£InfoQ¶ÔÆäÖв¿·ÖÌÖÂÛÄÚÈݽøÐÐÁË×ܽᡣ
Rob Conerey£¨SubSonicÖ®¸¸£¬Ä¿Ç°ÊÇ΢ÈíASP.NET MVCÍÅ¶ÓµÄ ......

ÔÚASP.NETÖÐÏÂÔØÎļþ

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
        ΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ