asp.netΪɶҪÒýÓÃconfigSections?
ÒòΪÓû§µÄһЩ¶ÔÏó, ¿ÉÄÜÔÚconfigÀï½øÐÐÅäÖÃ, µ«ÊÇconfigÔõôÄÜËæ±ãÈÃÄãÌí¼Ó×Ô¼ºµÄ½ÚµãÄØ! ²»ÐÐÄã×Ô¼ºÊÔÊÔ, ÔÚÈκÎλÖÃÌí¼ÓÈκÎûÓÐÉêÃ÷µÄ½Úµã, ϵͳ¶¼²»»áÈÃÄãͨ¹ý, ¸ü²»»áÈÃÄãÈ¥¶ÁËüÁË, µ±È», Äã´òËãÔÚ±ðµÄxmlÎļþÀïÌí¼Ó½Úµã, È»ºó¶Á³öÀ´, ´´½¨¶ÔÏó, Õâ¸öûÎÊÌâ. ΪÁËϵͳÄÜÓÐ×éÖ¯µÄ¹ÜÀíÓû§µÄÔÚÅäÖÃÎļþÀïµÄ×Ô¶¨ÒåÐÅÏ¢, ¾ÍҪʹÓÃconfigSectionsÁË, ·Ö3²½×ß: 1. ´´½¨Ò»¸öʵÏÖIConfigurationSectionHandlerµÄÀà 2. ÔÚconfigÎļþÀïÌí¼ÓÈçϽڵã: <configuration>
<configSections>
<section name="NameM" type="LearningConfiguration.NameSectionHandler"/>
</configSections>
<NameM>
<Add key="name1" firstname="Jim" lastname="w1"/>
<Add key="name2" firstname="Chris" lastname="w2"/>
</NameM> ˵Ã÷: ÔÚconfigSectionsÏÂÌí¼ÓÒ»¸ösection×Ó½Úµã, дºÃ±êʾÃûºÍÀàÐÍ, È»ºóÔÚ½ô½ÓÕâÏÂÃæÊµÏÖÕâ¸ö±êʾÃûµÄϸ½ÚÄÚÈÝ,¾ÍÊÇÎÒÃǵ±³õÏëÌí¼ÓµÄ×Ô¼ºµÄ×Ô¶¨ÒåÐÅÏ¢ÁË. 3. ʵÏÖIConfigurationSectionHandlerΨһµÄ·½·¨: public object Create(object parent, object configContext, XmlNode section), ÕâÀïµÄ×îºóÒ»¸ö²ÎÊý¾ÍÊÇ×Ô¶¨ÒåÐÅÏ¢ÄǸö½ÚµãÁË, ´ÖÌ岿·Ö. ͨ¹ý´¦ÀíÕâ¶ÑÐÅÏ¢, ·µ»ØÄãÒªµÄ¶ÔÏó. 4. ʹÓÃÕâ¸ö·µ»ØµÄ¶ÔÏó,ͨ¹ýSystem.Configuration.ConfigurationManager.GetSection()·½·¨. ÒÔÏÂÊÇʾÀý´úÂë: (NameSectionHandler.cs) namespace LearningConfiguration
{
public class NameSectionHandler : IConf
Ïà¹ØÎĵµ£º
ÒýÓÃusing System.Web.UI.HtmlControls;
ǰ̨µÄ<table id="mytab" border="1" runat="server" class="t1" width="600">
......
1.Using jQuery with ASP
.NET
http://dotnetslackers.com/articles/ajax/using-jquery-with-asp-net.aspx
°üÀ¨jQueryÔõôµ÷ÓÃasp.net web service
2.jQuery and ASP.NET AJAX
UpdatePanel
http://www.dotnetfunda.com/articles/article471-jquery-and-aspnet-ajax-updatepanel.aspx
²¿·Ö¸üкóÔõô±£³ÖjQueryÓ¦Ó ......
ASP.NETÓÃURL´«µÝÖÐÎIJÎÊýÒ»°ã»áʧ°Ü£¬ÔÒòÊÇÔÚ»ñÈ¡²ÎÊýÖ®ºó½øÐÐÁ˱àÒëת»»¡£
¿ÉÄܹýÐÞ¸Äweb.configÎļþÈÃURLÕý³£´«µÝÖÐÎIJÎÊý
ÔÚSystem.web½ÚÌí¼Ó
<globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312"/>
¼´¿É ......
ǰÕó×Ó¿ª·¢µÄÒ»¸öÏîÄ¿³ÌÐòÖУ¬×ÜÊÇ´æÔÚ³¬Ê±ÎÊÌ⣬ÎÒÔÚiisºÍweb.configÖж¼ÅäÖÃÁ˳¬Ê±Îª120·ÖÖÓ£¬µ«ÊǾ³£ÊDz»µ½40·ÖÖӾͳ¬Ê±ÁË£¬ºÜÊÇ·³ÈËÈ´¿àÓÚһֱûÓÐÕÒµ½±È½ÏºÃµÄÒ»ÖÖ·½°¸£¬ºóÀ´²éѯÁËÐí¶àÏà¹ØµÄ×ÊÁϲÅÕÒµ½Ò»¸ö¿ÉÒÔʵʩµÄ·½°¸¡£
ÕâÀïÖ÷Òª½²ÊöÒ»ÏÂweb.config¹ØÓÚsessionState½ÚµãµÄÅäÖ÷½°¸£¬sessionStateÓÐËÄÖÖģʽ£ºof ......