如何解决您的登录尝试不成功,请重试登录 [英] how to solve your login attempt was not successful please try again login

查看:1068
本文介绍了如何解决您的登录尝试不成功,请重试登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在使用登录表格...我执行我的程序以显示此错误,如何避免该错误.........
如何解决您的登录尝试不成功,请重试login

hello i am using login form... i execute my program to disply this error how to avoid it.........
how to solve your login attempt was not successful please try again login

推荐答案

首先,您需要确保使用正确的密码.
然后确保与数据库的连接正常工作.
First of all, you need to make sure you are using the right password.
Then ensure the connection to the database is working properly.


要使此操作容易,请首先使用静态密码和用户ID.读取文本框的值并使用条件进行检查:
to make this easy first use static password and user id. read the value of textbox and check using condition :
if(txtUserName.Text=="Abc" && txtPassword.Text=="Abc123")
{
Response.Write("welcome Login"); // code here
}
else
{
//....
}


如果正确,则检查数据库连接.使用调试检查要传递给数据库并正在执行的查询.并在try catch块中查找wrie代码,并在出现异常时打印出异常,由此您可以轻松找到问题所在.


if it is correct then check your database connection. Using debug check the query that you are passing to database and executing. and wrie code in try catch block and print the exception if there is, from this you can easily find where is the problem.

try
{
//code here...

}
catch(Exception ex)
{
Response.Write(ex.Message);
}



希望对您有帮助.
并且,如果有帮助,别忘了将其标记为答案. :)



Hope this will help you.
And don''t forget to mark as answer if it helps. :)


if(txtUserName.Text=="asd" && txtPassword.Text=="123")
{
Response.Write("Welcome.aspx"); 
}
else
{
your message
or make one label
lblError.text= "PLZ try Again";
}


这篇关于如何解决您的登录尝试不成功,请重试登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆