如何在mvc中检查数据库中的用户名是否存在? [英] how to check the username existance in database in mvc?
本文介绍了如何在mvc中检查数据库中的用户名是否存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿朋友,
我有一种情况,我使用textchanged事件来检查数据库中用户名的存在但是它可以在MVC4中完成,但我不知道我们如何调用控制器并通过文本框值由textchanged事件????任何人都可以帮助解决这个问题..... plz help
Hey friends,
I have a situation in which I am using textchanged event to check the existance of username in database but It can be done in MVC4 but i dont know how we call controller and pass the textbox value by textchanged event????Can anyone help to solve this problem.....plz help
推荐答案
请参阅:
http://www.tugberkugurlu.com/ archive / check-instant-if-username-exists-asp-net-mvc-remote-validation [ ^ ]
这篇关于如何在mvc中检查数据库中的用户名是否存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文