DataList ImageButton Problems

T

Travis

Very Simply my aspx code:


<asp:DataList GridLines=Both CellPadding=10
RepeatDirection="Horizontal" RepeatColumns="2" Runat="server"
ID="InsightCat" RepeatLayout="Table" HorizontalAlign=Left
OnItemDataBound=ImageBound>
<ItemStyle VerticalAlign="Top"></ItemStyle>

<ItemTemplate>
<td align=left>
<asp:Label Visible=False Runat=server ID=SkU text='<%#
DataBinder.Eval(Container.DataItem, "SKU_NO") %>'></asp:Label>
<asp:Image ImageUrl='<%# "Images/" +
DataBinder.Eval(Container.DataItem, "Product_Image")%>' width="83"
height="120" ID="ItemImage" Runat="Server" >
</asp:Image>
</td>
<td align=center>
<asp:Label Runat="server" ID="ItemTitle" CssClass="bodytext" Width=225
Font-Bold="True" text='<%# DataBinder.Eval(Container.DataItem,
"Product_Title")%>'></asp:Label><br><br><br>
<asp:Label ID="Price" Runat="server" Font-Bold="True"
CssClass=bodytext text='<%# DataBinder.Eval(Container.DataItem,
"Product_Price", "{0:c}")%>'></asp:Label><br>
<span class="bodytext">Qty:</span>
<asp:TextBox Width="40" ID="qty" Runat="server">0</asp:TextBox>
<asp:ImageButton on ImageUrl="Images/Add_To_Cart.gif" ID=AddToCart1
Runat="server" OnCommand=AddToCart CommandArgument='<%#
Container.DataItem("SKU_NO")%>' CommandName=Addcar></asp:ImageButton>
</ItemTemplate>
</asp:DataList>

On the Click of the ImageButton, it will return the SKU_NO, but what I
really need it to do is to return both the SKU_NO and the quantity
(asp:textbox id=qty)...
And I'm having no luck at all doing that. Since there will be 10-12
items per page, I'm not sure how to do this.
Any ideas?


Thanks,

Travis
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top