如何检查用户是否有效使用asp.net中的哈希表
问题描述:
我有登录表单如果输入用户名和密码并单击登录按钮我必须检查用户是否有效使用哈希表
I Have A Login Form if enter username and password and click on login button i have to check user is valid or not using hash table
答
试试 -
Try-
if (ht.Contains(txtname.Text) && ht.ContainsValue(txtpswd.Text))
{
//your logic
}
希望,它有帮助:)
Hope, it helps :)