Hi all,
All of my views need to have masterpages associated with them so that if a client is browsing without ajax support the site still works.
But for clients supporting ajax sometimes I need to render just the view to inject into the content div of my masterpage.
How do I do this?
I've tried taking the masterpage attribute of the page header, this works when I use return View("ViewFile", "~/Path/To/MasterPage.Maser"); but when I use return View("ViewFile") I get a HttpException: Content controls are only allowed in pages that reference a masterpage.
Many thanks,
Jason