SqlMembershipProvider question

假如想象 提交于 2019-12-11 14:51:40

问题


When you create the Register Control for the SqlMembersipProvider nothing happens if they register and the username or email is in use. Is there a tutorial or override function that fixes this in asp.net 2.0


回答1:


You may need to register an event handler for the LoginError event.

See this article for lots of details: http://aspnet.4guysfromrolla.com/articles/120705-1.aspx




回答2:


You most certainly should see a red error message indicating that the operation failed and why.

If you do not see this then there is something hinky with the way you have built your create-user page.

Try simply dragging a CreateUserWizard onto a new WebForm and try what you describe.


And nick is correct in saying that you really should acknowledge the time and effort people take to help you with your problems by taking 2 seconds and clicking upvote and/or accept.

That is the way that stackoverflow works and if you don't get with the program you are going to be ignored.



来源:https://stackoverflow.com/questions/3313771/sqlmembershipprovider-question

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!