问题描述
AdminName.Text==ConfigurationSettings.AppSettings["AdminName"])&&(AdminPwd.Text==ConfigurationSettings.AppSettings["PassWord"])
解决方案
解决方案二:
从web.config中的AppSettings中取出key=AdminName或者Password的AppSetting的value
解决方案三:
考。这有什么好理解的啊。直接存配置信息啊
解决方案四:
Yourcodeshouldbelikethis:if(AdminName.Text==ConfigurationSettings.AppSettings["AdminName"])&&(AdminPwd.Text==ConfigurationSettings.AppSettings["PassWord"]){//dosomething...}Thiscodechecksadministratornameandpassword.
时间: 2024-09-12 00:10:46