commandargument in linkbutton Question

Discussion in 'ASP .Net' started by Patrick Olurotimi Ige, Jun 20, 2005.

  1. I have a commandargument='<%#DataBinder.Eval(Container,
    "DataItem.ProductID")%>'

    But i want to add for example to the commandargument below:-
    "AddToCart.aspx?productID=<%#DataBinder.Eval(Container,
    "DataItem.ProductID")%>"

    Any ideas?>


    <asp:LinkButton ID="Link1" runat="server" CommandName="link"
    commandargument='<%#DataBinder.Eval(Container,
    "DataItem.ProductID")%>'>Add</asp:LinkButton>
     
    Patrick Olurotimi Ige, Jun 20, 2005
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.