Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I have created a column chart using razor it is working fine If I display it using macro. When I try to display it on web page using img tag.
<p> <img src="~/macroScripts/RealTimeColumnChart.cshtml" alt="" /></p>
it just display the image place holder without the image
I have also tried adding this to the mime types in IIS 6.0 (win server 2003 sp2 )
Extension: .cshtmlMime Type: text/html
Any help would be really appreciated.
regards
saif
Why not create your function as a global @Helper method and then create a macro that calls that and writes out the entire img tag? See http://joeriks.com/2011/03/11/better-structure-for-your-razor-scripts-with-renderpage-in-umbraco/
Thank you Dan,
I followed the same pattern on given link. But the problem is still as it is. When I render
on my web page.
It displays the chart all over the page please could you tell me how to display it only in a fixed portion of the page or bottom of the page.
kind regards
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Displaying Charts Inside a Web Page
Hi All,
I have created a column chart using razor it is working fine If I display it using macro. When I try to display it on web page using img tag.
<p> <img src="~/macroScripts/RealTimeColumnChart.cshtml" alt="" /></p>
it just display the image place holder without the image
I have also tried adding this to the mime types in IIS 6.0 (win server 2003 sp2 )
Extension: .cshtml
Mime Type: text/html
Any help would be really appreciated.
regards
saif
Why not create your function as a global @Helper method and then create a macro that calls that and writes out the entire img tag? See http://joeriks.com/2011/03/11/better-structure-for-your-razor-scripts-with-renderpage-in-umbraco/
Thank you Dan,
I followed the same pattern on given link. But the problem is still as it is. When I render
@RenderPage("~/macroScripts/RealTimePieChart.cshtml")
</div>
on my web page.
It displays the chart all over the page please could you tell me how to display it only in a fixed portion of the page or bottom of the page.
kind regards
saif
is working on a reply...