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

ASP.NET²Ù×÷web.config

      ASP.NET¿ÉÒÔÀûÓÃWebConfigurationManagerºÍÖ±½ÓÀûÓÃXML·½Ê½²Ù×÷web.config,WebConfigurationManager±È½Ï¼òµ¥£¬µ«ÊÇÇå³ý×¢ÊÍ´úÂë¡£Á½Õß²Ù×÷·½Ê½¶¼ÐèÒªÓÐдȨÏÞ¡£
      ·½·¨Ò»£¬ÀûÓÃWebConfigurationManager£¬ÐèÒªÒýÓÃSystem.Web.Configuration.WebConfigurationManager£»
     Ìí¼ÓÏ
     Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
     AppSettingsSection app = config.AppSettings;
    app.Settings.Add("key", "valueadd");
    config.Save(ConfigurationSaveMode.Modified);
  
     ÐÞ¸ÄÏ
     Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
     AppSettingsSection app = config.AppSettings;
     app.Settings["key"].Value = "valuemodify";
     config.Save(ConfigurationSaveMode.Modified);
     ɾ³ýÏ
     Configuration config = WebConfigurationManager.OpenWebConfiguration(null);
     AppSettingsSection app = config.AppSettings;
     app.Settings.Remove("key");
     config.Save(ConfigurationSaveMode.Modified);
     ÐÞ¸ÄÁ¬½ÓÏ
      Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
ConnectionStringsSection conSection = (ConnectionStringsSection)config.GetSection("connectionStrings");
conSection.ConnectionStrings[Request["type"].ToString()].ConnectionString = Request["connstr"];
config.Save(ConfigurationSaveMode.Modified);
 XmlDocument xmldoc = new XmlDocument();
            string filename = Common.FilePath("../web.config");
    &nbs


Ïà¹ØÎĵµ£º

ASP.NET»ñÈ¡ÖÐÎÄÊ××Öĸ

//ASP.NET»ñÈ¡ÖÐÎÄÊ××Öĸ
    public class Converter
    {
        static public string GetChineseSpell(string strText)
        {
            ......

asp.netÖ÷»úÉèÖþ­Ñé

Äú¿ÉÒÔͨ¹ýÒÔÏÂÉèÖÿØÖÆasp.net¶Ô·þÎñÆ÷ÄÚ´æµÄÕ¼Óᣲ¢ÄÜÉèÖÃaspnet½ø³Ì¶¨Ê±Öؽ¨£¨ÀàËÆIIS6ÖÐAppPoolÀïµÄ¶¨Ê±ÖØÆô£©£¬ÕâÑù¿ÉÒÔ±ÜÃâ·þÎñÆ÷³¤Ê±¼äÔËÐÐaspnetÕ¼ÓôóÁ¿¿ÕÏÐÄڴ棬ÓÐÀûÓÚÌá¸ßaspnetÔËÐÐЧÂÊ¡£
aspnetÅäÖÃÎļþλÖÃΪ
CWINDOWSMicrosoft.NETFrameworkv1.1.4322CONFIGmachine.config
ÓÃÎı¾±à¼­Æ÷´ò¿ª¸ÃÎļþ£¬ÕÒµ ......

Asp.Netϸ½ÚÐÔÎÊÌ⾫ÝÍ

1.<%=...%>Óë<%#... %>µÄÇø±ð:
´ð:<%=...%>ÊÇÔÚ³ÌÐòÖ´ÐÐʱµ÷Óã¬<%#... %>ÊÇÔÚDataBind()·½·¨Ö®ºó±»µ÷ÓÃ
2.¿Ø¼þ½ÓÊÕÄÄЩÀàÐÍÊý¾Ý?
´ð:½ÓÊÕBindµÄ¿Ø¼þ£¬Ò»°ãÓÐDropDownList,DataList,DataGrid,ListBoxÕâЩ¼¯ºÏÐÔÖʵĿؼþ£¬¶ø±»À¦°óµÄÖ÷ÒªÊÇArrayList(Êý×é),Hashtable(¹þÏ¡±í),DataView(Êý¾ÝÊÓͼ ......

asp.netĸ°æÒ³Ê¹Óÿؼþʱ,¿Ø¼þÖз¾¶ÎÊÌâ

¸Õ¸ÕÔÚheadmenu¿Ø¼þÀïÃæÐ´ÁËÒ»¸öµ¼º½Ìõ,Óõ½Á˱¾µØµÄͼƬ,ÔڿؼþÖÐÏÔʾÁ¼ºÃ,¿ÉÊǷŵ½Ä¸°æÊ½Ò³ºó,·¢ÏÖµ¼º½Ìõ±³¾°Í¼Æ¬Ã»ÁË,ÓÚÊÇ×Ðϸ¼ì²éÁËÏÂͼƬµÄurl,ÎÒÓõÄÊǾø¶Ô·¾¶,ÄѵÀ·ÅÔÚÖ÷Ò³ÉϺó,·¾¶Ò²¸Ä±äÁË,ÉÏÍø²éÁËÏÂ,»¹ÕæÊÇÕâ¸öÎÊÌâ,ͼƬÔڿؼþÀïÃæ¿´²»µ½Ã»¹ØÏµ,¹Ø¼üÊÇÒªÔÚĸ°æÊ½Ò³ÄÜ¿´µ½¾ÍÐÐ,·¾¶¶¼Òª¸ù¾Ýĸ°æÒ³µÄд. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ