How to call a Controller method from javascript in MVC3?

前端 未结 5 1919
栀梦
栀梦 2021-01-01 05:52

Im using MVC3 architecture, c#.net. I need to compare text box content(User ID) with the database immediately when focus changes to the next field i.e., Password field. So I

5条回答
  •  遥遥无期
    2021-01-01 06:32

    You can use RemoteValidation attribute with a server side action on your controller to do it for you all by MVC Unobstrusive javascript and not needed to write a single line JS/Jquery for it.

提交回复
热议问题