sanjaysutar Report post Posted April 25, 2012 Hi, I am using Asp.Net MVC 3 with Razor views In a View (aspx page) if I use <h2><%= ViewData["Message"] %></h2> it renders a chart properly In Razor View (cshtml page), I am using <h2>@ViewData["Message"]</h2>, which is not rendering chart but the string data for chart Any help would be appreciated. Thanks, Sanjay Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 26, 2012 Hi, I am using Asp.Net MVC 3 with Razor views In a View (aspx page) if I use <h2><%= ViewData["Message"] %></h2> it renders a chart properly In Razor View (cshtml page), I am using <h2>@ViewData["Message"]</h2>, which is not rendering chart but the string data for chart Any help would be appreciated. Thanks, Sanjay Hi, Can you paste sample code here? so that we can test. Share this post Link to post Share on other sites
sanjaysutar Report post Posted April 26, 2012 Hi, The problem has been fixed. Instead of @ViewData["Message"], I have to use @Html.Raw(ViewData["Message"]). Hi, Can you paste sample code here? so that we can test. Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 26, 2012 Hi, The problem has been fixed. Instead of @ViewData["Message"], I have to use @Html.Raw(ViewData["Message"]). Its glad to know that you have managed to resolve your issue. Share this post Link to post Share on other sites