xp

导航

中HyperLink控件NavigateUrl属性绑定的写法

Posted on 2007-12-19 16:40  xp  阅读(1601)  评论(0编辑  收藏  举报
<asp:DataList ID="dlAllProduct" runat="server" >
 <ItemTemplate>
  <asp:HyperLink ID="likPot" runat="server" NavigateUrl='<%#"../ProductBrowse/VideoPlay.aspx?ProductSNO="+DataBinder.Eval(Container.DataItem,"ProductSNO")+"&VideoSNO="+DataBinder.Eval(Container.DataItem,"PayMentTypeChildSNO")+"&ProductPurchaseID="+DataBinder.Eval(Container.DataItem,"ID")%>' class="a6">
 </ItemTemplate>   
</asp:DataList>

NavigateUrl='<%#"../ProductBrowse/VideoPlay.aspx?ProductSNO="+DataBinder.Eval(Container.DataItem,"ProductSNO")+"&VideoSNO="+DataBinder.Eval(Container.DataItem,"PayMentTypeChildSNO")+"&ProductPurchaseID="+DataBinder.Eval(Container.DataItem,"ID")%>'