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.µ¯ÆôÒ»¸öÈ«ÆÁ´°¿Ú
<html>
<body onload="window.open('http://www.sdinf.com','example01','fullscreen');">;
<b>www.sdinf.com</b>
</body>
</html>
¡¡¡¡2.µ¯ÆôÒ»¸ö±»F11»¯ºóµÄ´°¿Ú
<html>
< ......
<div id='box_id' >test </div>
$('#box_ld').css("display","block");
×¢Ò⣺為input Ìí¼ÓÖ»讀µÄ樣ʽ²¢²»ÊÇ
$("#gameuser_username").css("readonly","readonly");
¶øÊÇ
$("#gameuser_username").attr('readonly','readonly');
......
ASP.Net Êý¾Ý¿Ø¼þÖ®GridView ¿Ø¼þ£º
GridView ¿Ø¼þÒÔ±íµÄÐÎʽÏÔʾÊý¾Ý£¬²¢Ìṩ¶ÔÁнøÐÐÅÅÐò¡¢·ÖÒ³¡¢·ÔÄÊý¾ÝÒÔ¼°±à¼»òɾ³ýµ¥¸ö¼Ç¼µÄ¹¦ÄÜ¡£
×¢Ò⣺GridView ¿Ø¼þÊÇ ASP.NET µÄÔçÆÚ°æ±¾ÖÐÌṩµÄ DataGrid ¿Ø¼þµÄºó¼Ì¿Ø¼þ¡£³ýÁËÌí¼ÓÀûÓÃÊý¾ÝÔ´¿Ø¼þ¹¦ÄܵÄй¦ÄÜ£¬GridView ¿ ......
¿ÉÒÔ˵¼¸ºõÿ¸ö×ö¹ýWeb¿ª·¢µÄÈ˶¼Îʹý£¬µ½µ×ÔªËØµÄIDºÍNameÓÐÊ²Ã´Çø±ð°¢£¿ÎªÊ²Ã´ÓÐÁËID»¹ÒªÓÐNameÄØ?!
¶øÍ¬ÑùÎÒÃÇÒ²¿ÉÒԵõ½×îclassicalµÄ´ð°¸£ºID¾ÍÏñÊÇÒ»¸öÈ˵ÄÉí·ÝÖ¤ºÅÂ룬¶øName¾ÍÏñÊÇËûµÄÃû×Ö£¬IDÏÔÈ»ÊÇΨһµÄ£¬¶øNameÊÇ¿ÉÒÔÖØ¸´
µÄ¡£
ÉÏÖÜÎÒÒ²Óöµ½ÁËIDºÍNameµÄÎÊÌ⣬ÔÚÒ³ÃæÀïÊäÈëÁËÒ»¸öinput
type= ......
ÔÚ½¨Á¢Óë·þÎñÆ÷µÄÁ¬½Óʱ³ö´í¡£ÔÚÁ¬½Óµ½ SQL Server 2005 ʱ£¬ÔÚĬÈϵÄÉèÖÃÏ SQL Server ²»ÔÊÐí½øÐÐÔ¶³ÌÁ¬½Ó¿ÉÄܻᵼÖ´Ëʧ°Ü¡£ (provider: SQL ÍøÂç½Ó¿Ú, error: 26 - ¶¨Î»Ö¸¶¨µÄ·þÎñÆ÷/ʵÀýʱ³ö´í)
1.Ê×ÏÈÔËÐÐSQLServer
2.È»ºóÔËÐÐC:\WINDOWS\Microsoft.NET\Framework\v2.0.5072 ......