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
Ïà¹ØÎĵµ£º
ÔÚÈÕ³£Ñ§Ï°ºÍʹÓÃASP.NETµÄ¹ý³ÌÖУ¬ÓÐЩ±È½ÏÌØÊâÓÐÓõľÑéÊÕ¼¯ÔÚÕâÀ·½±ã×Ô¼º¼ÇÒäºÍÀí½â£¬Ò²Ï£ÍûÄܰïÖúµ½Ò»Ð©³õѧÕ߲ο¼¡£Èç¹ûÓÐЩ²»×ãµÄµØ·½Ï£Íû¸ßÊÖ²»Áߴͽ̣¡£¡£¡
Ò»¡¢ÔÚÒ»°ã´¦ÀíÎļþ(ashx)ÖÐʹÓÃSessionʱ£¬ÐèÒªÒý½øÃüÃû¿Õ¼ä£ºusing System.Web.SessionState; ²¢ÇÒʹ¸ÃÀàÊµÏ ......
Ö±½Ó°ÑÊý¾Ý¿â·ÅÖÃApp_dataÎļþ¼ÐÖУ¬Ìí¼ÓÒ»¸öweb.configÅäÖÃÎļþÈ»ºóдÈçÏ´úÂë
<connectionStrings>
<add name="users" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Users.mdf;Integrated Security=True;User Instance=True" providerName="System.Data ......
ÔÀ´µÄMembership
ÎÒÃÇÖªµÀÔÚAsp.Net 2.0ÖÐ΢Èí¾ÍΪÎÒÃÇÌṩÁËÇ¿´óµÄȨÏÞ¹ÜÀí¹¦ÄÜÀ´°ïÖúÎÒÃǹÜÀíAsp.NetÏàÓ¦µÄȨÏÞ£¬ÆäʵËüÊǶÔÎÒÃǵÄÉí·ÝÈÏÖ¤ºÍȨÏÞ¹ÜÀíµÄÒ»ÖÖ³éÏó¡£ÕâÀï¼òµ¥µÄÁ˽âÒ»ÏÂMembership£º
ÎÒÃÇÓ¦¸ÃÖªµÀ΢Èí¹ØÓÚÈÏÖ¤·½Ãæ¸øÎÒÃÇÌṩÁËÈýÖÖÈÏÖ¤·½Ê½windows ¡¢Forms¡¢Passport,ÎÒÏëÊìϤAsp.Net ......
Html ±êÇ©ÖеÄAltºÍTitle
AltºÍTitle¶¼ÊÇÌáʾÐÔÓïÑÔ±êÇ©£¬×¢ÒâÆäÇø±ð¡£
ÔÚÎÒÃÇä¯ÀÀÍøÒ³Ê±£¬µ±Êó±êÍ£ÁôÔÚͼƬ¶ÔÏó»òÎÄ×ÖÁ´½ÓÉÏʱ£¬ÔÚÊó±êµÄÓÒϽÇÓÐʱ»á³öÏÖÒ»¸öÌáʾÐÅÏ¢¿ò¡£¶ÔÄ¿±ê½øÐÐÒ»¶¨µÄ×¢ÊÍ˵Ã÷¡£ÔÚһЩ³¡ºÏ£¬ËüµÄ×÷ÓÃÊǺÜÖØÒªµÄ¡£
alt ÓÃÀ´¸øÍ¼Æ¬À´ÌáʾµÄ¡£TitleÓÃÀ´¸øÁ´½ÓÎÄ×Ö»òÆÕͨÎÄ×ÖÌáʾµÄ¡£
Ó÷¨ÈçÏ£º
¡¡ ......