C#错误中出现这样的语句:上下文中不存在SqlHelper
#regionobjectresult=sqlHelper.ExecuteScalar("select*fromT_userNamewhereUserName=@name...
#region
object result = sqlHelper.ExecuteScalar("select * from T_userName where UserName=@name", new SqlParameter("@name", username));
if (Convert.ToInt64(result) > 0)
{
Response.Redirect("welcome.aspx");
}
else
{
} 展开
object result = sqlHelper.ExecuteScalar("select * from T_userName where UserName=@name", new SqlParameter("@name", username));
if (Convert.ToInt64(result) > 0)
{
Response.Redirect("welcome.aspx");
}
else
{
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询