无法将类型“string”隐式转换为“System.Web.UI.WebControls.DropDownList
if (DropDownList1 = "管理员")
{
Response.Redirect("Index.aspx");
Session.Add("CardId",CardID);//
return;
}
else
{
Response.Redirect("HYIndex.aspx");
Session.Add("CardId",CardID);//
return;
}
这里出错,无法将类型“string”隐式转换为“System.Web.UI.WebControls.DropDownList,该怎么改呢,我DropDownList1里面数据就2个一个管理员,一个是会员