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
>
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篇随笔