T
Travis
Very Simply my aspx code:
<asp
ataList 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
ataList>
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
<asp
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
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