Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

wapÁ÷Á¿Í³¼Æ·ÖÎöƽ̨(ת)

ÔÚ¡¶Ëû¾ËÍøwapÁ÷Á¿Í³¼Æ·ÖÎöƽ̨¡·¿ª·¢ÖÐΪÁËÌá¸ßϵͳµÄÐÔÄÜ£¬ÎÒÃÇÀûÓÃCacheÀ´±£´æÊý¾Ý£¬ÀýÈç°ÑÓû§µÄһЩȨÏÞÐÅÏ¢·ÅÔÚCacheÖУ¬µ«ÕâÑù×ö»áÓÐЩÎÊÌ⣬ºÎʱÇå³ýCacheÓëÊý¾Ý±£³Öͬ²½£¬ÏÂÃæÎÒÔÚÏîÄ¿ÖÐʹÓÃCacheµÄÐĵã¬Óë´ó¼Ò·ÖÏí¡£
Ò»¡¢ÀûÓÃCacheDependencyÀà
¡¡¡¡ËüÔÚÃüÃû¿Õ¼äSystem.Web.CachingÖС£CacheDependencyÀà»áÓëÎļþÖ®¼ä½¨Á¢ÒÀ¸½ÐÔ¹Øϵ¡£ÔÚÎļþ¸ü¸Äʱ£¬¸ÃCacheÏî»á×Ô¶¯ÒƳý¡£
·½·¨:
¡¡¡¡°ÑÓû§È¨ÏÞÐÅÏ¢±£Áô³ÉXMLÎļþ£¬µ±¹ÜÀíÔ±¸üÐÂÊý¾Ýʱ£¬Í¬Ê±¸üÐÂÕâ¸öXMLÎļþ¡£
´úÂ룺
//CahceֵΪXMLÎļþÄÚÈÝ
XmlDocument doc = Cache["user"] as XmlDocument;
        if (doc == null)
        {
            doc = new XmlDocument();
            string filePath = Server.MapPath("user.xml");
¡¡¡¡//½¨Á¢ÒÀÀµÏî
            CacheDependency c = new CacheDependency(filePath);
            doc.Load(filePath);
¡¡¡¡//½¨Á¢ÒÀÀµ¹Øϵ
            Cache.Insert("skin", doc, c
            ,Cache.NoAbsoluteExpiration
            ,TimeSpan.fromMinutes(30)
            );
        }
¶þ¡¢ÀûÓÃSqlCacheDependencyÀà
¡¡¡¡ËüÒ²ÔÚÃüÃû¿Õ¼äSystem.Web.CachingÖУ¬SqlCacheDependency»áÓëÊý¾Ý¿â±í»òSQL Server²éѯ½á¹û½¨Á¢ÒÀÀµ¹Øϵ£¬ÕâÖÖ·½·¨²Ù×÷±È½Ï¸´ÔÓ¡£
²½¾Û1:
ÔÚWeb.ConfigÎļþÖÐÔö¼ÓÊý¾Ý¿âÁ¬½Ó´®ÓëCacheÅäÖýڵ㡣
<configuration>
<appSettings/>
  <connectionStrings>
    <add name="connStr" connectionString="server=192.168.1.24;uid=sa;pwd=l23;database=CacheTest;"/>
  </connectionStrings>
<system.web>
    <caching>
      <sqlCacheDependency>
        <databases>
          <!--½ÚµãconnectionStringNamµÄÖµconnStr±ØÐëÓëÉÏÃ涨ÒåµÄÁ¬½Ó´®½ÚµãnameµÄÖµÏàͬ-->
          <a


Ïà¹ØÎĵµ£º

ÊÖ»úWAPС˵ÍøÕ¾

wap.71now.com
Ãâ·ÑwapÍøÖ·´óÈ«
wap.feiku.com ·É¿âÊé³Ç
fywap.net ·çÓïС˵Íø
3gyd.net 3GÒƶ¯Êé³Ç
book.11222.cn ÊéÆìÍø
bookwap.net µÆ»ðÊé³Ç
wap.my236.cnÊÖ»ú×ÊÔ´Íø
kong.net/book¿ÕÖÐÍø
good13.cn 13ºÅÊéÕ¾
wx.cmfu.com ÆðµãÍø
zzwx.netÖ¸ÕÆÎÄѧÍø
bbokk.comÌì¿ÕÎÄѧ
wapgd.cn¹ã¶«ÊéÎÝ
wap.tdwap.cnÌìµ ......

WAP 2.0½éÉܺÍʹÓù淶(2)

£¨Æߣ©Îĵµ½á¹¹
XMLÉùÃ÷ºÍ×Ö·û±àÂ룺<?xml version="1.0" encoding="UTF-8"?>
       UTF-8/16±àÂë¿ÉÊ¡ÂÔ¡£XMLÉùÃ÷Ò²²»ÊDZØÐëµÄ£¬µ«Èç¹ûºöÂÔÔÚÐí¶àWAPä¯ÀÀÆ÷Öгö´í¡£
±ØÐëÓÐDOCTYPEÉùÃ÷¡£ÔÚXMLÉùÃ÷ºÍ<html>ÔªËØÖ®¼ä¡£
<html>¡¢<head>¡¢<link>¡¢<title& ......

WAPÕ¾µãµÄMIMEÀàÐÍÓÐÄÄЩ£¿ÈçºÎÌí¼Ó£¿

Ç°Ò»Õó²ÎÓ뿪·¢ÁËÒ»¸öwapÍøÕ¾·¢ÏÖÐèÒªÌí¼ÓºÜ¶àMIMEÀàÐÍ
µ½µ×ʲôÊÇMIMEÀàÐÍÄØ£¿
MIMEÀàÐ;ÍÊÇÉ趨ijÖÖÀ©Õ¹ÃûµÄÎļþÓÃÒ»ÖÖÓ¦ÓóÌÐòÀ´´ò¿ªµÄ·½Ê½ÀàÐÍ£¬µ±¸ÃÀ©Õ¹ÃûÎļþ±»·ÃÎʵÄʱºò£¬ä¯ÀÀÆ÷»á×Ô¶¯Ê¹ÓÃÖ¸¶¨Ó¦ÓóÌÐòÀ´´ò¿ª¡£
ÄÃIISÀ´Ëµ°É Èç¹ûÄãÏ£ÍûÓÃIISÀ´×öwapServer ÄǾͱØÐëÌí¼ÓMIMEÀàÐÍ£¬·ñÔòÕâЩδע²áµÄÀ©Õ¹ÃûÊDz»Äܱ ......

asp.netʵÏÖÎļþÏÂÔØ(wapÊÖ»úÏÂÔØ)

Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒÁ½Ì죬ÊÖ»úÏÂÔØ
 protected void Page_Load(object sender, EventArgs e)
    {
        string filename = Server.UrlDecode(Request["upload"]);
        string filePath = Server.MapPath("uploa ......

¹ØÓÚwapÕ¾µãÁ÷Á¿·ÖÎöͳ¼Æƽ̨µÄ·¢Õ¹·½ÏòÖ®ÎÒ¼û

Á÷Á¿Í³¼Æ·ÖÎöƽ̨¶ÔÓÚ¹ã´óÓµÓÐ×Ô¼ºÕ¾µã£¬»òÕ߸ºÔð¹ÜÀíÔËÓªÕ¾µãµÄ¸÷¸öÕ¾³¤À´Ëµ£¬ÄÇÊÇÔÚÊìϤ²»¹ýÁË£¬¾ÍËãÊÇÆÕͨµÄÍøÃñ¶Ô´Ëƽ̨ҲÄÜ˵³ö¸ö´ó¸Å¡£
    
Èç½ñ3Gʱ´úµÄµ½À´£¬Ê¹ÊÖ»úÓµÓиü¸ßµÄ´ø¿í£¬¸ü¿ìµÄCPU£¬·ÃÎÊwapÕ¾µãÒ²±äµÃ¸ü¼ÓÈÝÒ×£¬¼ÓÉÏÓÐucwebÕâÑùÓÅÐãµÄÊÖ»úä¯ÀÀÆ÷Ìá¸ßä¯ÀÀÒ³ÃæµÄËٶȣ¬Ê¹
wapÕ¾µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ