What’s the best way to implement field validation using ASP.NET MVC?

Question :

What’s the best way to implement field validation using ASP.NET MVC?,

Answer :

I am building a public website using ASP.NET, as part of the deliverable I need to do an Admin Site for data entry of the stuff shown in the public site, I was wondering what techniques or procedures are people using to validate entries using ASP.NET MVC.

,

Take a look at the this plugin is amazing,it’s clean to implement and has all the features you could ever need, including remote validation via AJAX.

Read More  What’s your favourite way of interacting with databases from your programming language? [closed]

Also a sample MVC controller method can be found  which basically uses the JsonResult action type like:

public JsonResult CheckUserName(string username)  {      return Json(CheckValidUsername(username));  }  

That’s the answer What’s the best way to implement field validation using ASP.NET MVC?, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you

Read More  using DBMS_APPLICATION_INFO with Jboss