62,268
社区成员
发帖
与我相关
我的任务
分享
string sql="";
if (RadioButtonList1.SelectedItem.Text == "管理员")
{
sql = "select * from [Users] where [UserName]='" + name.Text.ToString().Trim() + "' and [pwd]='" + password.Text.ToString().Trim() + "'";
}
else
{
sql = "select * from [users] where [username]='" + name.Text.ToString().Trim() + "' and [pwd]='" + password.Text.ToString().Trim() + "' and ct='用户'";
}