2010-03-02 66 views

回答

6
<asp:DataList id="DataList1" runat="server"> 
    <ItemTemplate> 
    <asp:HyperLink Runat =server NavigateUrl ='<%#"webform1.aspx?id=" + DataBinder.Eval(Container.DataItem, "productid").ToString()%>' ID="Hyperlink1"> 
      <%#DataBinder.Eval(Container.DataItem, "ProductName")%> 
    </asp:HyperLink> 
    </ItemTemplate> 
</asp:DataList>