I'm not an MVC expert, but I'm diving into it with my employer. I've come across this article[^] and I believe it may be what you're looking for. The validation can be done in the service layer, which can be a separate component, if I'm not mistaken.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
I have been working with MVC since last 4+ yrs.
I not a big fan of Data Annotations and attributes for everything. (It is really cool in many cases but not al least for validations.)
For validations, I use JQuery validations and NOT data annotations.
MVC do not force you to use attributes for validations and you can always avoid it.
JQuery has many good libraries for all kind of validations.
Life is a computer program and everyone is the programmer of his own life.
Hi All. Please I am in dire need of help with jeditable and datatables.
I have some datatables that are populated via ajax call. They are well populated and the editable part works to an extent. However, I have three major challenges.
1. If I try to add a new row to my table, it gives me an error, but it is actually saved to the database, so if I refresh of the table, it is populated with the data
2. I have a button in the row of my datatables, on click of this button, I want to get the values in the row, but I am unable to get it. it gives me an an "undefined" output. Pls note that this table has child row that is also being populated by ajax.
3. I have some select buttons in my jEditable plugin, they are also populated via ajax, however I want each option to have a unique ID. The problem is, how to configure its json data to look like what it accepts.
Thank you for even having a look at it. I am not sure of what you mean by specific information, but I have a jsfiddle account where you can find the code. Although I cant't populate it with actual data but you can have an idea of what's going on. The links are Question 2 http://jsfiddle.net/aadewojo/751ry6pa/ and Question 3 http://jsfiddle.net/aadewojo/pext0hm9/.
Thanks and I look forward to your reply.