Express does not do anything like this. 
It is much 'lower level' and nimble, and this type of validation goes 
outside its scope.



On Tuesday, January 6, 2015 8:43:23 PM UTC+2, Peter Morris wrote:
>
> Hi all
>
> I come from the ASP MVC C# world.  Over there I can add the following to a 
> view @Html.ValidationMessageFor(x => x.Name) and if there is an error in my 
> view state for that field it will output error text
>
> ViewState.AddError('Name', 'Required');
> return View();
>
> It will also re-populate the input values of the form.  I'm looking to 
> achieve something similar with Express.  Keeping the form values and also 
> validating input + showing errors against form inputs.  Any advice would be 
> appreciated!
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/7593c8f3-d3f6-4fba-b487-e3439d679e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to