This project has moved and is read-only. For the latest updates, please go here.

needed change for ASP.NET MVC3

Apr 13, 2011 at 12:44 PM
Edited Apr 13, 2011 at 12:44 PM

Hi,

to get your code working I had to change the property MvcMaps.Map<T>.writer from:

        protected TextWriter writer
        {
            get
            {
                return this.ajaxHelper.ViewContext.HttpContext.Response.Output;
            }
        }
to
        protected TextWriter writer
        {
            get { return this.ajaxHelper.ViewContext.Writer; }
        }
seems like the generated output is chached in the Writer. 
If you use the Response your generated output will be rendered before any other output
Sep 4, 2011 at 2:07 PM

Credit where its due. Thanks a lot. Worked for me