Have a go at developing the website yourself using whatever technology you are familiar with, and when you get stuck, then post a specific question here.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
I have a question about validation. I'm a long time Windows developer, and I'm diving into MVC 4.5 now.
Until now I have purposely avoided using error validation attributes because validation doesn't belong in the UI - it belongs in the BL - Where business rules are supposed to be enforced. Requiring a Customer Entity to have a Customer Name is a RULE, so it's validation belongs in the BL.
But a lot of the MVC examples I see have this type of data entry validation in the MVC project's models. It just doesn't sit well with me because you're then forced to maintain validation (AKA business rules) in two places - the UI AND the BL.
When the business rules change (not IF) then you now must recompile TWO layers of the app, not just the BL.
I'm curious what you experienced MVC people have to say on this.
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.
Last Visit: 31-Dec-99 18:00 Last Update: 2-Aug-21 11:41