如题。我在.cs代码如下 public string onlyImg()
{
int productid =int.Parse( Request.QueryString["productid"]);
string oldImg = ImgManage.getAllIMGbyId(productid)[0].ImageUrl;
string newImg = oldImg.Replace("~", "..");
return newImg;
}调试结果返回值为: ../images/up/002.jpg.aspx页面源码里<a href="<% onlyImg();%>" class="MagicZoom">
<asp:Image ID="img" runat="server" style="height: 278px; width: 213px;"/>
</a>
浏览的时候 鼠标移上去显示 链接的地址为页面类的父文件夹的URL`` 搞不懂是怎么回事
我的目标是想让a href = '../imgaes/up/002.jpg'
希望有大大帮忙看下。。谢谢
{
int productid =int.Parse( Request.QueryString["productid"]);
string oldImg = ImgManage.getAllIMGbyId(productid)[0].ImageUrl;
string newImg = oldImg.Replace("~", "..");
return newImg;
}调试结果返回值为: ../images/up/002.jpg.aspx页面源码里<a href="<% onlyImg();%>" class="MagicZoom">
<asp:Image ID="img" runat="server" style="height: 278px; width: 213px;"/>
</a>
浏览的时候 鼠标移上去显示 链接的地址为页面类的父文件夹的URL`` 搞不懂是怎么回事
我的目标是想让a href = '../imgaes/up/002.jpg'
希望有大大帮忙看下。。谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货