如何检查与数据库匹配的凭据不是 [英] how check the credentials with database matched are not

查看:74
本文介绍了如何检查与数据库匹配的凭据不是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含用户名和密码的表,我在表中创建了一些用户n个密码。现在我设计了具有用户名,密码和登录按钮的应用程序,如果用户输入了相关凭据,那么登录到与该数据库进行chechking的主页是否存在。如何在asp.net中编写代码。请帮助我。

i have created a table which has username and password and i created some users n passwords in the table. now i designed the application having username,password and login button if the user enters the correcr credentials then login to the home page that chechking with database is this user exists are not. how to write the code in asp.net. please help me.

推荐答案

在这里,几个小时前我回答了同样的问题:需要帮助代码检查用户名和密码 [ ^ ]
Here, I replied the same question few hours back: need help in code for checking username and password[^]


有很多代码可以做到这一点。我建议先研究ASP.Net Forms Authentication,然后再研究SQLConnection,SQLCommand和SQLDataReader对象。



当你遇到特定问题时我们会'我很乐意帮忙。
There is a lot of code to do this. I would recommend researching ASP.Net Forms Authentication and then the SQLConnection, SQLCommand, and SQLDataReader objects, to start with.

When you get stuck on something specific we''ll gladly help.


这篇关于如何检查与数据库匹配的凭据不是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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