I\'m writing my first asp.net mvc application and I have a question about custom Html helpers:
For making a form, you can use:
<% using (Html.Begi
I tried following the advice given here in MVC3, but I ran into trouble using:
htmlHelper.ViewContext.HttpContext.Response.Write(...);
When I used this code, my helper was writing into the Response stream BEFORE my Layout was rendered. This didn't work well.
Instead I used this:
htmlHelper.ViewContext.Writer.Write(...);