谁帮看看这个asp.net的代码哪里错了!谢了!!
using System;using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void LoginBtn_Click(object sender, EventArgs e)
{
if (Idcwest.Configuration.Config.AppSettings("ValidateCode") == "true")
{
if (CheckCode.Text.Trim() != Session["CheckCode"].ToString())
{
Idcwest.Web.Utils.JavaScript.Alert("验证码输入错误!");
return;
}
}
string uname = UserNameTextBox.Text.Trim();
string pwd = Idcwest.Security.Md5.getMd5Hash(PasswordTextBox.Text.Trim());
string ReUrl = Request.QueryString["ReUrl"];
if (Digitwest.BLL.User.Login(uname, pwd))
{
//登陆之后转到页
if (string.IsNullOrEmpty(ReUrl))
Response.Redirect("Main.aspx");
else
Response.Redirect(Server.UrlDecode(ReUrl));
}
else
Idcwest.Web.Utils.JavaScript.Alert("用户名或密码错误!");
}
protected void UserNameTextBox_TextChanged(object sender, EventArgs e)
{
}
}