日期:2014-05-17 浏览次数:20439 次
<system.web> <pages> <!--注册自定义控件--> <controls> <!--分页控件--> <add assembly="Nature.WebControl.QuickPager" namespace="Nature.WebControls" tagPrefix="Nature"/> <!--注册基础控件,文本框、下拉列表框等--> <add assembly="Nature.WebControl.BaseControl" namespace="Nature.WebControls" tagPrefix="Nature"/> <!--注册元数据控件 <add assembly="Nature.WebControl.MetaControl" namespace="Nature.WebControls" tagPrefix="Nature"/>--> </controls> </pages>
<appSettings> <add key="DataBaseType" value="1"/> <add key="PagerSQLKey" value="22639340"/> <add key="FCKeditor:BasePath" value="~/aspnet_client/FCKeditor/"/> <add key="FCKeditor:UserFilesPath" value="/uploads"/> </appSettings> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=.;Initial Catalog=Nature_Demo;persist security info=False;user id=sa;pwd=admin;" providerName="System.Data.SqlClient"/> </connectionStrings>
<configuration> <!--URL重写的设置,居然必须是第一个--> <configSections> <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter"/> </configSections> …… <!--重写规则--> <RewriterConfig> <Rules> <!--URL重写的演示--> <RewriterRule> <LookFor>~/QuickPager/URL/list(\d+)\.aspx</LookFor> <SendTo>~/QuickPager/URL/URLRewriter.aspx?page=$1</SendTo> </RewriterRule> </Rules> </RewriterConfig> <system.web> <!--URL重写的设置--> <httpHandlers> <add verb="*"