ASP.net中的登录页面,带有后端sQL服务器

问题描述:

我有一个带有名称和密码的asp登录页面。如果用户输入名称和密码并按下按钮,则应检查数据库中是否有可用名称,我们必须重定向到另一页。





任何人都可以告诉我wat查询用户名和密码。

i had a asp Login page with name and password. if the user enter the name and password and hit the button it should check in the DB if the names available we have to redirect to another page.


can any one tell me wat's the query for check the username & password.

这里有完整的代码,包含登录页面的屏幕截图:



http://www.c-sharpcorner.com/uploadfile/rohatash/simple-user-login-in-Asp-Net-using-C-Sharp/ [ ^ ]





如果您想使用内置登录cotrol,请参阅:



http://forums.asp.net/t/1403132.aspx [ ^ ]



如果解决问题,请接受回答并投票。
Here you get complete code with screen shots of login page:

http://www.c-sharpcorner.com/uploadfile/rohatash/simple-user-login-in-Asp-Net-using-C-Sharp/[^]


If you want to use inbuilt login cotrol refer this:

http://forums.asp.net/t/1403132.aspx[^]

Accept as answer and vote if solve your problem.