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

asp.net²Ù×÷ÅäÖÃÎļþ

 ÓÉÓÚÏîÄ¿ÖжദÐèÒª¶ÔÅäÖÃÎļþ½øÐвÙ×÷£¬ÈçÅäÖÃÐÅÏ¢µÄ¶ÁÈ¡¡¢¸ü¸ÄºÍдÈ룬ÐèÒªÒ»¸öͨÓõÄÀàÀ´¶ÔÆä½øÐвÙ×÷ºÍ´¦Àí¡£Õâ´ÎµÄÈÎÎñ¾ÍÊÇÅäÖýڵÄһЩÓ÷¨¡£
       Õâ´ÎÉý¼¶ºóµÄ¿ª·¢¹¤¾ßÊÇ»ùÓÚVS2005µÄ£¬·ÖÎöÁËVS2005 ÐÂÔöµÄһЩ¹¦ÄÜ£¬Ëü×Ô´øÁËÒ»Ì×ÅäÖÃÎļþÖнáµãµÈµÄÅäÖá£Ä¿Ç°µÄÏîÄ¿ÓõÄÅäÖÃÎļþ¶¼ÊÇϵͳ×Ô´øµÄ£¬Òò´Ë£¬Õâ´ÎµÄÈÎÎñÖ÷ÒªÊǶÔVS2005ÅäÖÃÀàµÄһЩ½éÉܼ°À©³ä£¨Óû§×Ô¶¨ÒåÅäÖýڵãµÄ²Ù×÷£©¡£ÈÎÎñ·ÖΪÁ½¸ö´ó·½Ïò£¬Ò»¸öÊÇÕë¶ÔWebÏîÄ¿£¨¶ÔÓ¦µÄÅäÖÃÎļþΪweb.config£©£¬ÁíÒ»¸öÊÇÕë¶ÔWinFormÏîÄ¿¡£ÏÂÃæµÄÕ½ÚÖ÷Òª¸ÅÒªµØ½éÉÜÒ»ÏÂVS2005ÖÐÅäÖÃÏîµÄÓ÷¨
1. Web 씀1.1 ϵͳ×Ô´ø
       ÔÚVS2005ÖУ¬ÎÒÃÇ¿ÉÒÔͨ¹ýϵͳ×Ô´øµÄ¹ÜÀíÀàÀ´¶ÁÈ¡ºÍÐÞ¸ÄÏàÓ¦KeyËù¶ÔÓ¦µÄValueÖµ£¬¾ßÌåµÄ·½·¨ÈçÏ£¨×¢Ò⣺ÓÉÓÚkeyÊÇÖ®¶ÁÊôÐÔ£¬Òò´ËÖ»ÄÜÐÞ¸ÄÓëkeyÏà¶ÔÓ¦µÄValueÖµ£©£º
       ´«ÈëÏàÓ¦µÄKeyÖµ£¨ÈçTest£©£¬Í¨¹ýµ÷ÓÃConfigurationManager.AppSettings["Test"] .Value¼´¿É»ñµÃ¶ÔÓ¦µÄValueÖµ
1£© ´ò¿ªÅäÖÃÎļþ£¨Web.config£©
¡¡¡¡Configuration config = WebConfigurationManager.OpenWebConfiguration("~");
2£© »ñÈ¡ÏàÓ¦µÄappSettingsÅäÖýÚ
¡¡   AppSettingsSection appSection = (AppSettingsSection)config.GetSection("appSettings");
3£© Ôö¼ÓÏàÓ¦µÄappSettingsÅäÖýÚ
¡¡   Ôö¼Ó Key – Value µÄ¼üÖµ¶Ô£¨Èç ”Test” – “Hello”£©  appSection.Settings.Add("Test", "Hello");
4£© ±£´æÅäÖýÚ
       config.Save(ConfigurationSaveMode.Modified)
1£© ´ò¿ªÅäÖÃÎļþ£¨Web.config£©
       Configuration config = WebConfigurationManager.OpenWebConfiguration("~");
2£© ´«ÈëKeyֵͨ¹ýµ÷ÓÃÏÂÃæ·½·¨À´»ñÈ¡¶ÔÓ¦µÄÖµ
       Èç´«ÈëKeyΪTest²ÎÊýÀ´»ñÈ¡¶ÔÓ¦Öµ£ºwebConfig.AppSettings.Settings["Test"].Value
3£© ±£´æÅäÖýÚ
       config.Save(ConfigurationSaveMode.Modified)
       ±£´æµÄ¹¹Ô캯ÊýÓÐÈýÖÖ£º
                    1¡¢²»´ø²ÎÊý
  &


Ïà¹ØÎĵµ£º

Êý×Ö·ÖÒ³µ¼º½Ìõ (asp.net C#)


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using ......

Asp.netʹÓÃSqliteÊý¾Ý¿â

 1. ´Óhttp://sqlite.phxsoftware.com ÏÂÔØSystem.Data.SQLite.dll
 2. ´Óhttp://www.sqlite.org/download.html ÏÂÔØ sqlite3.dll
 3. Copy ÒÔÉÏ2¸öDllµ½Asp.netÍøÕ¾µÄbinĿ¼Ï£¬ÀàËÆ  E:\2009work\MyWeb\Bin
 4. ÓÃsqlitespy ¹¤¾ßн¨Êý¾Ý¿â£¬E:\2009work\MyWeb\App_Data\db.db3 £ ......

¹ØÓÚASP.NETÒ³Ãæ´òÓ¡¼¼ÊõµÄ×ܽá

¹ØÓÚASP.NETÒ³Ãæ´òÓ¡¼¼ÊõµÄ×ܽá
     B/S½á¹¹µ¼ÖÂÁËWebÓ¦ÓóÌÐòÖдòÓ¡µÄÌØÊâÐÔ¡£
¡¡¡¡• ³ÌÐòÔËÐÐÔÚä¯ÀÀÆ÷ÖУ¬´òÓ¡»úÔÚ±¾µØ£¬¶øÎļþÈ·¿ÉÄÜÔÚ·þÎñÆ÷ÉÏ£¬µ¼ÖÂÁË´òÓ¡¿ØÖƲ»ÊǺÜÁé»î¡£
¡¡¡¡• ¸ñʽÈçºÎ¿ØÖƺͶ¨ÖƵȣ¬ÊÇÎÒÃÇ¿ª·¢ÖпÉÄÜ»áÃæ¶ÔµÄÎÊÌâ¡£
¡¡¡¡´òÓ¡ÎĵµµÄÉú³É
¡¡¡¡• 1¡¢ ......

ÔÚASP.NETÖÐÉÏ´«Í¼Æ¬²¢Éú³ÉËõÂÔͼµÄC#Ô´Âë

http://www.knowsky.com/5723.html
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ