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 »ñµÃ¿Í»§¶ËµÄIP£¬×î³£¼ûµÄÊÇʹÓÃÏÂÊö´úÂ룺 string user_IP = System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
¶ÔÓÚÁ˽â´úÀí·þÎñÆ÷Çé¿öµÄÈË£¬ÎÒÃÇ»áÖªµÀ£¬Èç¹ûÓû§Ê¹ÓÃÁË´úÀí·þÎñÆ÷£¬ÉÏÊö´úÂë»ñµÃµÄÊÇ´úÀí·þÎñÆ÷µÄIPµØÖ·£»Èç¹ûÓû§Ê¹ÓÃÁ˶à¸ö´úÀí·þÎñÆ÷£¬ÔòÊǵ½´ï·þÎñÆ÷µÄ×îºóÒ ......
Ö±½Ó°ÑÊý¾Ý¿â·ÅÖÃ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 ......
Ò»¡¢ÈÏʶWeb.configÎļþ
Web.config ÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ý.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ& ......
ieͨ¹ý£¬Ã»Ð´»ðºü²¿·Ö
js²¿·Ö
function setbox()
{
var thisf=this//×ÔÎÒ¸´ÖÆ£¬ÓÃÓÚǶÈëobj·½·¨ÖÐÈ¥
this.sindex=1;this.moving=false;this.sizing=false;
this.show=function(o)
{
if(o.id)
{
if(document.getElementById(o.id))
{
var td=document.getElementById(o.id);
if(td.style ......
Html ±êÇ©ÖеÄAltºÍTitle
AltºÍTitle¶¼ÊÇÌáʾÐÔÓïÑÔ±êÇ©£¬×¢ÒâÆäÇø±ð¡£
ÔÚÎÒÃÇä¯ÀÀÍøҳʱ£¬µ±Êó±êÍ£ÁôÔÚͼƬ¶ÔÏó»òÎÄ×ÖÁ´½ÓÉÏʱ£¬ÔÚÊó±êµÄÓÒϽÇÓÐʱ»á³öÏÖÒ»¸öÌáʾÐÅÏ¢¿ò¡£¶ÔÄ¿±ê½øÐÐÒ»¶¨µÄ×¢ÊÍ˵Ã÷¡£ÔÚһЩ³¡ºÏ£¬ËüµÄ×÷ÓÃÊǺÜÖØÒªµÄ¡£
alt ÓÃÀ´¸øͼƬÀ´ÌáʾµÄ¡£TitleÓÃÀ´¸øÁ´½ÓÎÄ×Ö»òÆÕͨÎÄ×ÖÌáʾµÄ¡£
Ó÷¨ÈçÏ£º
¡¡ ......