asp.netÇå³ýhtml±ê¼Ç
#region Çå³ýÎı¾Ñùʽ Ö÷ÒªÓ¦ÓÃÓÚ´ÓÍøÂçÕ³Ìù½øÀ´µÄÎı¾
[WebMethod]
public static string ClearStyle(string yourStr)//Çå³ýÑùʽ
{
ImageUrl = null;
string OldString = yourStr;
StringBuilder UpdateString = new StringBuilder();
Regex reg = new Regex(@"(?i)<img[^>]*?\s*src=(['""]?)(?<src>[^'""\s>]+)\1[^>]*>");//Æ¥Åä³öimg±ê¼Ç
MatchCollection mc = reg.Matches(yourStr);
int imgsum = mc.Count;
ImageUrl = new string[imgsum];
if (imgsum > 0)
{
for (int i = 0; i < imgsum; i++)
{
int len = mc[i].Length;
int index = OldString.IndexOf(mc[i].ToString());
string indextext = OldString.Substring(0, index);
&nbs
Ïà¹ØÎĵµ£º
ÎÞˢУºÒ²¾ÍÊÇÒ»°ãÍøÕ¾¶¼Óеē¿´²»Ç壬µã»÷¸ü»»”¡¢“¸ü»»ÑéÖ¤Â딵ÄÄÇÖÖ¹¦ÄÜ£¬Ò»¶Îjs½Å±¾¸ã¶¨£¡
²¨ÐÎŤÇú£ºÀàËÆgoogleÑéÖ¤Â룬Õâ¸öÄܸüÓÐЧµÄ·ÀÖ¹ÑéÖ¤Âë±»»úÆ÷È˹¥ÆÆ£¬¾ßÌåµÄŤÇú³Ì¶È¿ÉÒÔ×ÔÐÐÉèÖã¨ÕýÏÒÇúÏßWaveŤÇúͼƬ²úÉú²¨ÐÎÂ˾µÐ§¹û£©£¬¼Ó¼Ó²ÎÊýÒ²¿ÉÒԸijÉmsnµÄÄÇÖÖ°¡£¬×Ô¼º¾ÙÒ»· ......
ASP.net »ñµÃ¿Í»§¶ËµÄIP£¬×î³£¼ûµÄÊÇʹÓÃÏÂÊö´úÂ룺 string user_IP = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
¶ÔÓÚÁ˽â´úÀí·þÎñÆ÷Çé¿öµÄÈË£¬ÎÒÃÇ»áÖªµÀ£¬Èç¹ûÓû§Ê¹ÓÃÁË´úÀí·þÎñÆ÷£¬ÉÏÊö´úÂë»ñµÃµÄÊÇ´úÀí·þÎñÆ÷µÄIPµØÖ·£»Èç¹ûÓû§Ê¹ÓÃÁ˶à¸ö´úÀí·þÎñÆ÷£¬ÔòÊǵ½´ï·þÎñÆ÷µÄ×îºóÒ ......
Html ±êÇ©ÖеÄAltºÍTitle
AltºÍTitle¶¼ÊÇÌáʾÐÔÓïÑÔ±êÇ©£¬×¢ÒâÆäÇø±ð¡£
ÔÚÎÒÃÇä¯ÀÀÍøҳʱ£¬µ±Êó±êÍ£ÁôÔÚͼƬ¶ÔÏó»òÎÄ×ÖÁ´½ÓÉÏʱ£¬ÔÚÊó±êµÄÓÒϽÇÓÐʱ»á³öÏÖÒ»¸öÌáʾÐÅÏ¢¿ò¡£¶ÔÄ¿±ê½øÐÐÒ»¶¨µÄ×¢ÊÍ˵Ã÷¡£ÔÚһЩ³¡ºÏ£¬ËüµÄ×÷ÓÃÊǺÜÖØÒªµÄ¡£
alt ÓÃÀ´¸øͼƬÀ´ÌáʾµÄ¡£TitleÓÃÀ´¸øÁ´½ÓÎÄ×Ö»òÆÕͨÎÄ×ÖÌáʾµÄ¡£
Ó÷¨ÈçÏ£º
¡¡ ......
×î½üÔÚ×öһЩÄÚÈÝËÑË÷µÄ¹¤×÷£¬ËÑË÷³öÀ´µÄÄÚÈÝΪhtml¸ñʽ£¬ÁÐ±í²¿·ÖÐèÒªÏÔʾÿÏîÄÚÈݵÄÒ»²¿·Ö¡£ÒòΪÊÇhtml¸ñʽµÄÄÚÈÝ£¬Ö±½Ó½ØÈ¡ÄÚÈݵÄÇ°¶àÉÙ×Ö·ûÏÔÈ»²»ºÏÊÊÁË¡£¶øÈç¹ûÖ±½ÓÈ¥µôËùÓÐhtml¸ñʽȻºóÔÙ½ØÈ¡ÓÖÎÞ·¨´ïµ½ÏëÒªµÄЧ¹û£¬ÔÙÍøÉÏËÑÁËһ֮ͨºó£¬Ð´ÏÂÈçÏ´úÂëÓ¦¸Ã¿ÉÒÔÂú×ã»ù±¾µÄÒªÇóÁË¡£(jsдµÄ£¬ÒòΪÈÝÒ×µ÷ÊÔ)
´úÂë
var&nb ......
DataGridView 72¼Æ
±¾ÎĽ«½éÉÜASP.NETÖÐDataGridViewµÄÓ÷¨,DataGridViewÔÚAsp.netÖÐÊdz£ÓõĿؼþÖ®Ò»£¬ÕÆÎÕºÃDataGridViewµÄÌصãºÍÓ÷¨¡£½«¶Ô³ÌÐòµÄÐÔÄÜÓдó´óµÄÌá¸ß£¬Í¬Ê±Ò²ÄܼӿìÎÒÃÇÏîÄ¿µÄ¿ª·¢ÖÜÆÚ£¡
¿ìËÙÔ¤ÀÀ£º
GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò
GridViewÑ¡ÖУ¬±à¼£¬È¡Ïû£¬É¾³ý
GridViewÕý·´Ë«ÏòÅÅÐò
GridViewºÍÏÂÀ²Ëµ¥ ......