【发布时间】:2014-07-23 07:02:12
【问题描述】:
我使用this extension 在我的 MVC 应用程序中嵌入了一个 .ascx 文件。在ascx 中有一个asp:Chart 对象。
当我打开我的页面http://localhost:56854/Machines/Details/1 时,没有图表图像。查看页面源代码,我发现 ChartImg.axd 的路径存在问题。图片得到了
src="/Machines/Details/ChartImg.axd?i=chart_8b0e12daec9447feb9986442e53243d2_0.png&g=becaa2f59bec483eab9e9103620711eb"
只访问
localhost:56854/ChartImg.axd?i=chart_8b0e12daec9447feb9986442e53243d2_0.png&g=becaa2f59bec483eab9e9103620711eb
在网络浏览器中给了我正确的图像。我的问题是:如何改变这条路径?
【问题讨论】:
-
发布更多代码..
-
我不知道哪个部分会有所帮助。你能说得更具体点吗?
标签: asp.net-mvc webforms microsoft-chart-controls asp.net-charts