Model-View-Presenter Pattern - input validation

Discussion in 'ASP .Net Security' started by George Washington, Oct 21, 2009.

  1. To all,

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


    George Washington
    George Washington, Oct 21, 2009
    1. Advertisements

  2. George Washington

    Lars-Erik Guest

    I'd say view and service or business layer.
    By view I mean markup like validator controls.
    The presenter presumably forwards events to service or business layer
    methods which should always do validation anyway. :)
    Lars-Erik, Oct 22, 2009
    1. Advertisements

  3. George Washington


    Nov 15, 2016
    Likes Received:
    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: Nov 16, 2016
    KellyBryan, Nov 15, 2016
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.