asp.netÖйýÂÔhtml´úÂë
// <summary>
/// ¹ýÂËhtml´úÂë
/// </summary>
public static string RphtmlStr(string html)
{
try
{
System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex(@"<script[\s\S]+</script *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex2 = new System.Text.RegularExpressions.Regex(@" href *= *[\s\S]*script *:", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex3 = new System.Text.RegularExpressions.Regex(@" no[\s\S]*=", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex4 = new System.Text.RegularExpressions.Regex(@"<iframe[\s\S]+</iframe *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex5 = new System.Text.RegularExpressions.Regex(@"<frameset[\s\S]+</frameset *>", System.Text.RegularExpressions.RegexOptions.IgnoreCase);
System.Text.RegularExpressions.Regex regex6 = new System.Text.RegularExpressions.Regex(@"\<img[^\>]+\>", System.Text.RegularExpres
Ïà¹ØÎĵµ£º
1¡¢Îı¾±êÇ©(ÃüÁî)
<pre></pre> ´´½¨Ô¤¸ñʽ»¯Îı¾
<h1></h1> ´´½¨×î´óµÄ±êÌâ
<h6></h6> ´´½¨×îСµÄ±êÌâ
<b&g ......
ÒõÑôÃá
¡¡¡¡´Ó½ñÌ쿪ʼÆð£¬»ù¶½É½½«ºÍ´ó¼ÒÒ»Æð½øÈëASP.net Öî¶à³ÌÐòµÄѧϰÖУ¬ÀÏʵ˵£¬.netµ½µ×ÊÇ·¨±¦»¹ÊÇÀ¬»ø£¬ÎÒÃÇÊÃÄ¿ÒÔ´ý¡£ÓÐÈκÎÎÊÌ⣬ÁªÂç»ù¶½É½ seaman@163.com
ʲôÊÇASP.net£¬ASP.netµÄ°²×°
¡¡¡¡1.1 ʲôÊÇASP.net
¡¡¡¡ASP.net ÊÇÒ»ÖÖ½¨Á¢ÔÚͨÓÃÓïÑÔÉϵijÌÐò¹¹¼Ü£¬Äܱ»ÓÃÓÚһ̨Web·þÎñÆ÷À´½¨Á¢Ç¿´óµÄWebÓ¦Óó ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); }
µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.locat ......
ÔÚתÏòеÄÒ³ÃæÊ±£¬»á³öÏÖÏÂÃæµÄ´íÎó
ÎÞ·¨ÕÒµ½×ÊÔ´¡£
˵Ã÷: HTTP 404¡£ÄúÕýÔÚ²éÕÒµÄ×ÊÔ´(»òÕßËüµÄÒ»¸öÒÀÀµÏî)¿ÉÄÜÒѱ»ÒƳý£¬»òÆäÃû³ÆÒѸü¸Ä£¬»òÔÝʱ²»¿ÉÓá£Çë¼ì²éÒÔÏ URL ²¢È·±£ÆäƴдÕýÈ·¡£
ÇëÇóµÄ URL: /lonin.aspx
½â¾ö·½·¨ÈçÏ£º
1.Ê×ÏÈ£¬ÒªÖØÐÂ×¢²áIIS £ºÔËÐÐcmd ºó ½øÈë“C:\WINDOWS\Microsoft.NET\Fra ......
Ò»¡¢Response¶ÔÏó
Response¶ÔÏóÊÇHttpResponseÀàµÄÒ»¸öʵÀý¡£¸ÃÀàÖ÷ÒªÊÇ·â×°À´×ÔASP.NET²Ù×÷µÄHTTPÏìÓ¦ÐÅÏ¢¡£
1.Response¶ÔÏóµÄÊôÐÔ
¢Ù BufferOutput
˵Ã÷£º»ñÈ¡»òÉèÖÃÒ»¸öÖµ£¬¸ÃֵָʾÊÇ·ñ»º³åÊä³ö£¬²¢ÔÚÍê³É´¦ÀíÕû¸öÒ³Ö®ºó½«Æä·¢ËÍ
ÊôÐÔÖµ£ºÈç¹û»º³åÁ˵½¿Í»§¶ËµÄÊä³ö£¬ ......