我的登录失败了这个项目http://www.codeproject.com/Articles/408306/Understanding-and-Implementing-ASP-NET-Custom-Form [英] my login fail with this project http://www.codeproject.com/Articles/408306/Understanding-and-Implementing-ASP-NET-Custom-Form

查看:82
本文介绍了我的登录失败了这个项目http://www.codeproject.com/Articles/408306/Understanding-and-Implementing-ASP-NET-Custom-Form的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是asp.net c#的初学者。现在,我正在使用本教程了解和实现ASP,在C#中学习表单身份验证。 NET自定义表单身份验证 [ ^ ]

在表Users中,UserId是主键,但在我的情况下,表用户的用户名列为主键,而不是UserId。我在项目中更改了所有必要文件中的代码,但是我的登录失败了。



提前谢谢

解决方案

< blockquote>不要在快速回答下发布 - 如果您从文章中获得了代码,那么该文章底部会有一个新消息按钮,这会导致将电子邮件发送给作者。然后他们会被告知你希望与他们交谈。

在这里发布这个依赖于他们匆匆而过并意识到这是为了他们。


I am a beginner in asp.net c#. Now i am learning forms authentication in C# with this tutorial Understanding and Implementing ASP.NET Custom Forms Authentication[^]
In table Users , UserId is primary key, but table Users in my case has username column as primary key and not UserId. I change code in all necessary files in project , but my login is unsuccessful.

Thanks in advance

解决方案

Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


这篇关于我的登录失败了这个项目http://www.codeproject.com/Articles/408306/Understanding-and-Implementing-ASP-NET-Custom-Form的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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