我想achievet以下網址圖像的URL字符串連接
ImageUrl='~/products_pictures/(imageId)_middle.jpg
IM使用GridView和DataList控件
我嘗試了follwoing組合,但它不工作
<asp:Image ID="Image1" ImageUrl='~/products_pictures/<%#Eval("Id")%>_middle.jpg' runat="server" /></td>
<asp:Image ID="Image1" ImageUrl=<%"~/products_pictures/"%><%#Eval("Id")%><%"_middle.jpg"%> runat="server" />
當我試圖重建我的項目,它給我的錯誤錯誤服務器標記它不工作沒有很好地形成 – Milas