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
Ïà¹ØÎĵµ£º
jsÒªÇó£ºÎªÊ¹ÏµÍ³ÄÜÔÚIEºÍFFÏÂÕý³£ÔËÐУ¬²»ÒªÊ¹ÓÃÔÉú̬µÄjavascript£¬½¨ÒéʹÓÃjsµÄ¿â£¨È磺jquery£©
²¢ÇÒÒªÇóÓÃjqueryÖУ¬»ñÈ¡¶ÔÏóµÄÊôÐÔʹÓÃ$obj.attr("attrName"),²»ÒªÊ¹ÓÃobj.attrName,·ÀÖ¹×Ô¶¨ÒåµÄÊôÐÔÔÚFFÖв»ÄÜÕý³£ÔËÐÐ
1¡¢ÎÊÌ⣺<span></span>ÔÚFFÏÂÔË ......
1¡¢Îı¾±êÇ©(ÃüÁî)
<pre></pre> ´´½¨Ô¤¸ñʽ»¯Îı¾
<h1></h1> ´´½¨×î´óµÄ±êÌâ
<h6></h6> ´´½¨×îСµÄ±êÌâ
<b&g ......
ѧϰSEOÐèÒªÁ˽âÍøÒ³ÖÆ×÷£¬·ñÔòÍøÕ¾±¾ÉíµÄÓÅ»¯¾ÍÎÞ´ÓÏÂÊÖ¡£±È½ÏÁ÷ÐеÄÍøÒ³ÖÆ×÷¹¤¾ßÊÇMicrosoft¹«Ë¾¿ª·¢µÄ
Dreamweaver£¬Ö§³ÖËù¼û¼´ËùµÃµÄ±à¼·½Ê½£¬ÔÚÕ¾µãµÄ¹ÜÀí·½Ãæ×öµÄÒ²ºÜ³öÉ«£¬²»ÐèÒªÄãÕÆÎÕºÜÉîµÄÍøÒ³ÖÆ×÷¼¼Êõ֪ʶ£¬ÉõÖÁ²»ÐèÒªÄãÁ˽â HTMLµÄ»ù±¾Óï·¨¡£Ëü»¹Ö§³Ö²ãµÄ²Ù×÷£¬²¢ÇÒ¿ÉÒÔ±ÜÃâÉú³ÉÈßÓà´úÂ룬²¢ÇÒÖ§³Ö¶Ô HTMLÔ ......
1.Asp.NetÖм¸ÖÖÏàËÆµÄ±ê¼Ç·ûºÅ: < %=...%>< %#... %>< % %>< %@ %>½âÊͼ°Ó÷¨
´ð: < %#... %>: ÊÇÔڰ󶨿ؼþDataBind()·½·¨Ö´ÐÐʱ±»Ö´ÐУ¬ÓÃÓÚÊý¾Ý°ó¶¨
Èç: < %# Container.DataItem("tit") %>
< %= %>: ÔÚ³ÌÐòÖ´ÐÐʱ±»µ÷Ó㬿ÉÒÔÏÔʾºǫ́±äÁ¿Öµ
Èç:
*.aspxÖУº < %= ......
ÔÚ½¨Á¢Óë·þÎñÆ÷µÄÁ¬½Óʱ³ö´í¡£ÔÚÁ¬½Óµ½ SQL Server 2005 ʱ£¬ÔÚĬÈϵÄÉèÖÃÏ SQL Server ²»ÔÊÐí½øÐÐÔ¶³ÌÁ¬½Ó¿ÉÄܻᵼÖ´Ëʧ°Ü¡£ (provider: SQL ÍøÂç½Ó¿Ú, error: 26 - ¶¨Î»Ö¸¶¨µÄ·þÎñÆ÷/ʵÀýʱ³ö´í)
1.Ê×ÏÈÔËÐÐSQLServer
2.È»ºóÔËÐÐC:\WINDOWS\Microsoft.NET\Framework\v2.0.5072 ......