Model-View-Presenter Pattern - input validation

G

George Washington

To all,

In your opinion, where should input validation be performed? In the view? In
the Presenter?

Sincerely,

George Washington
 
L

Lars-Erik

I'd say view and service or business layer.
By view I mean asp.net markup like validator controls.
The presenter presumably forwards events to service or business layer
methods which should always do validation anyway. :)
 
Joined
Nov 15, 2016
Messages
2
Reaction score
0
In my opinion, input validation should perform by the Presenter. This can be things like checking if a number field doesn't contain non numeric characters.
 
Last edited by a moderator:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,056
Messages
2,570,446
Members
47,097
Latest member
MarionMajo

Latest Threads

Top