固定不变的的东西可以在web config 中配置;
如 路径,字符值
读取的时候再从web config中读取
<appSettings>
<add key="SessionName" value="dxm"/>
</appSetting>
读:string name=ConfigurationManager.AppSettings["SessionName"]
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=. ;User Instance=true" providerName=" System.Data.SqlClient"/>
</connectionStrings>