Dear All,
I am having a login page where I need to enter the login name and password for a user, which I need to verify with the backend database, using LINQ.
I have tried but I am not getting.
Can anybody assist.
Following is the underlying code.
protected void Button1_Click(object sender, EventArgs e) { QuizUserDetailsDataContext context = new QuizUserDetailsDataContext(ConfigurationManager.ConnectionStrings["krs_projectConnectionString"].ToString());
krs_userinfo k = new krs_userinfo();
//if(TextBox1.Text.Equals(k.uname.ToString()))
if(TextBox1.Text.Equals(k.uname) && (TextBox2.Text.Equals(k.password))) Response.Redirect("~/Quizaspx.aspx"); }
This is not working, but not giving any error also.
Many Thanks in Advance.