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
Ïà¹ØÎĵµ£º
Ö±½Ó°ÑÊý¾Ý¿â·ÅÖÃ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 ......
ÔÚC#ÖУ¬static±äÁ¿±íʾ¸Ã±äÁ¿ÊôÓÚÀ࣬¶ø²»ÊÇÀàµÄʵÀý¡£¿ÉÒÔ˵ÊǸÃÀàµÄËùÓÐʵÀý¹²ÏíÒ»¸östatic±äÁ¿¡£
asp.netµÄÒ³Ãæ¾ÍÊÇÒ»¸öÀ࣬ÎÒÃÇ·ÃÎÊÒ»¸öÒ³Ãæ¡£¾Í»áÔÚ·þÎñÆ÷ÉÏʵÀý»¯Ò»¸ö¸ÃÀàµÄʵÀý£¬À´ÏìÓ¦ÎÒÃǵÄÇëÇó¡£
“ËùÓÐʵÀý¹²ÏíÒ»¸östatic±äÁ¿” Õâ¾ÍÒâζ×Å£¬ËùÓеĿͻ§¶Ë·ÃÎʵ½µÄasp.netÒ³ÃæÖÐstatic±äÁ¿¶¼ÊÇͬһ¸ ......
HtmlÊÇ·ñÊDZê×¼ÎĵµÍùÍùÓ°ÏìjsµÄÖ´ÐÐЧ¹û¡£ ±ÈÈ磺ÔÚIE6Ï document.documentElement.clientHeight Õâ¸öº¯ÊýÊÇ»ñÈ¡¿ÉÊÓ´°¿ÚÎĵµ¸ß¶È£¬Èç¹ûhtml²»ÊDZê×¼Îĵµ Ôò·µ»ØÖµÊÇÁã.¶ødocument.body.clientHeight ÄÜ·µ»ØÏàÓ¦µÄÖµ.Ïà·´Èç¹ûÊDZê×¼Îĵµ document.body.clientHeight ·µ»ØÖµÊÇ0;
ÀàËÆµÄ»¹ÓÐdocument.documentElemen ......
HTMLÖÐobject±êÇ©µÄÏêϸÓ÷¨ ÊÕ²Ø
ÍøÒ³ÓõÄǶÈë½Å±¾,ÓÃÀ´²¥·ÅflashÎļþµÄ,objectÊÇÖ¸¶ÔÏóµÄÒâ˼
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="160">
Õâ¾ä˵Ã÷ÁËËùʹÓà ......