I am using string generated by the razor version of the method from:
But it does not include errors added to ModelState
on the server side.
When I checked it:
Variable viewContext
is correct - its property ViewData.ModelState
contains errors, but after:
viewResult.View.Render( viewContext, sw );
the string in sw
variable contains html without error messages etc ( I mean it is html which should be generated for ModelState without errors).
Is there a way to correct it ?