Contents tagged with View

  • MVC Pro Tip: Rendering A ViewResult As HTML String Output

    Perhaps you've tried this - creating a controller, getting the ViewResult and attempting to convert it to a HTML string (for example, my use case was for an email templating / generation system). It's not terribly difficult, but there are a few caveats - primarily, that when you just "new" up a Controller outside of the proper MVC lifecycle, it doesn't have a proper ControllerContext associated … more

  • 1