commandargument in linkbutton Question

  • Thread starter Patrick Olurotimi Ige
  • Start date
P

Patrick Olurotimi Ige

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>
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top