这些天,我一直在使用下面的代码从web配置中获取任何值。
string someValue= WebConfigurationManager.AppSettings["SomeKey"]
当我知道在那里解释说
...First of all in ASP.NET,您希望确保通过HttpContext对象的GetSection方法访问配置部分(这使用ASP.NET管理的缓存副本).
WebConfigurationManager.AppSettings 总是从web获取值,而不是从缓存获取值吗?
如果是,如何从缓存中获取配置值?
P.S .缓存与app.confi
我在编辑字段中有一个下拉列表,名为'ddVehicleType‘。当页面加载时,我正在从数据库获取值。但是错误是这样的
'ddVehicleType' has a SelectedValue which is invalid because it does not exist in the list of items.Parameter name: value
我的代码是,
while (reader.Read())
{
ddVehicl