GridView中
<
asp:HyperLink
ID
="linkProductImage"
runat
="server"
NavigateUrl
='<%#
String.Format("~/Shop/Product/ProductDetail.aspx?pID
={0}",Eval("ProductID"))
%
>
' ImageUrl='
<%
# String.Format("~/Shop/Product/GetImage.aspx?Imagepath={0}&Size={1}",Eval("ImagePath"),"120,120")
%>
'>
</
asp:HyperLink
>
![[技巧]带多值的参数传递 [技巧]带多值的参数传递](https://image.shishitao.com:8440/aHR0cHM6Ly93d3cuaXRkYWFuLmNvbS9nby9MMGx0WVdkbGN5OVBkWFJzYVc1cGJtZEpibVJwWTJGMGIzSnpMMDV2Ym1VdVoybG0%3D.jpg?w=700&webp=1)
DataGrid中
<
asp:HyperLink
ID
="linkProductImage"
runat
="server"
NavigateUrl
='<%#
String.Format("~/Shop/Product/ProductDetail.aspx?pID
={0}",DataBinder.Eval(Container.DataItem,"ProductID"))
%
>
' ImageUrl='
<%
#
String
.Format(
"
~/Shop/Product/GetImage.aspx?Imagepath={0}&Size={1}
"
,DataBinder.Eval(Container.DataItem,
"ImagePath
"
),
"
120,120
"
)
%>
'>
</
asp:HyperLink
>
祝贺第100篇随笔