[技巧]带多值的参数传递

时间:2022-08-27 23:35:04

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