I would like to use the new client-side validation features in MVC 2, but I have a specific view that has only a few text fields, and I don't want to create a strongly typed model for it. Can anyone describe how to use validity in MVC 2 without a strongly typed model?
I don't think this can be done, as client-side validation uses data annotations in the System.ComponentModel.DataAnnotations namespace. As far as I know, you should bind this to an object. I would suggest looking at a jquery solution.
Source: https://habr.com/ru/post/1739912/More articles:JAXB Аннотированная установка класса переменной, которая не является элементом - javaTransaction isolation when selecting, inserting, deleting - databasePython list like * args? - pythonRx: объединение нескольких IObservable веб-запросов - c#C # Thread-safe Extension Method - multithreadingWhy are most marketing tags (Omniture, XE, etc.) written with document.write ()? - javascriptWhat will this B-tree look like? - b-treeЗапуск приложения GUI в режиме службы Windows - user-interfaceWF4: receive argument / variable information during downtime - workflow-foundationЕсли утверждение недействительно - c++All Articles