Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > commandargument in linkbutton Question

Reply
Thread Tools

commandargument in linkbutton Question

 
 
Patrick Olurotimi Ige
Guest
Posts: n/a
 
      06-20-2005
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(Conta iner,
"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 ***

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# linkbutton question object does not contain a definition for CommandArgument needin4mation@gmail.com ASP .Net 3 12-23-2008 08:23 AM
How to CommandArgument of LinkButton inside EmptyDataTemplate? lax4u ASP .Net 0 03-13-2008 09:13 PM
CommandArgument for a LinkButton in a repeater (.net 1.1) MattB ASP .Net 4 01-25-2008 07:19 PM
Linkbutton does not look like a linkbutton Sathyaish ASP .Net 3 09-08-2005 09:41 AM
LinkButton CommandArgument bound property loses value on postback =?Utf-8?B?QmVuamFtaW4gSm9sZGVyc21h?= ASP .Net 2 08-21-2004 05:57 PM



Advertisments