Attribute-based validation in ASP.NET web forms using MVC libraries?

Is there a way in ASP.NET Webforms to host attribute-based validation? If yes, then any URLs where this has been demonstrated. I am not looking for open source projects. How can I use MVC tracing in web forms, can I use a validation framework?

+3
source share
3 answers

Routing is common for the whole asp.net, so you can easily use it in web forms .


" " DataAnnotations. asp.net, .net. Mvc ..

. , , , , .

+4

Also check the Application Block to check the Microsoft corporate library . Compared to DataAnnotations, it has a much larger set of features, visual studio integration, more expansion options, and future versions will be able to read DataAnnotations attributes, but also have a much steeper learning curve. Due to its complexity, it is not always suitable for small projects.

0
source

Source: https://habr.com/ru/post/1736973/


All Articles