我有这样一段代码在cs文件在ASP.NET MVC应用程序:ASP.NET MVC IIS问题
HtmlTableCell r2c1 = new HtmlTableCell();
r2.Cells.Add(r2c1);
r2c1.ColSpan = 2;
r2c1.Style.Add("font", "1px arial");
r2c1.Style.Add("height", "10px");
r2c1.Style.Add("background-image", "url(/Content/Images/pagebgbottomwhite.jpg)");
r2c1.Style.Add("background-repeat", "repeat-x");
该工程确定在当地,但是当我部署使用IIS 5我我的应用程序看不到那张照片。
如何更改URL的格式以便我可以看到它?
什么是根虚拟目录? – 2009-10-08 14:16:08
这将是D:\部署\,我在这里得到了/Content/Images/pagebgbottomwhite.jpg – gigi 2009-10-08 14:20:22
你可以直接浏览图像吗? – JonoW 2009-10-08 14:32:52