Web.config:
在 configuration 里面建
<AppSettings>
<add key="变量名" value="值"/>
</AppSettings>
后台获取:
public static string a = ConfigurationManager.AppSettings["变量名"].ToString();
或public static string a = ConfigurationManager.AppSettings[索引].ToString();