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>



    *** Sent via Developersdex http://www.developersdex.com ***
     
    Patrick Olurotimi Ige, Jun 20, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?=

    LinkButton CommandArgument bound property loses value on postback

    =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?=, Aug 21, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,146
    =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?=
    Aug 21, 2004
  2. Sathyaish
    Replies:
    3
    Views:
    3,169
    Sathyaish
    Sep 8, 2005
  3. Replies:
    3
    Views:
    13,559
    swati254
    Dec 23, 2008
  4. MattB
    Replies:
    4
    Views:
    1,519
    MattB
    Jan 25, 2008
  5. lax4u
    Replies:
    0
    Views:
    819
    lax4u
    Mar 13, 2008
Loading...

Share This Page