I'm going to make a website where you can purchase stuff..
I'm having problems with the repeater. The problem is I dont know what to select in my repeater.
it's something like this
how do I get the information of wich goods they purshase? normally I would send a id with a label or something but all the labels on the site will have the same ID so the server wont know wich one to take the information from.
same goes for the button
so I just need the basics of how to use repeater, btw.. It seems I can't use labels inside the reapeter at all. can't find the id when writing, like it doesent exist at all
Thx =)
I'm having problems with the repeater. The problem is I dont know what to select in my repeater.
it's something like this
Code:
<table cellpadding="0" cellspacing="0">
<tr valign="top" >
<td>Just nu har vi specialerbjudande på:
</td>
</tr>
<tr>
<asp:Repeater ID="repeater" runat="server">
<ItemTemplate>
</tr>
<tr>
<td>
<%#DataBinder.Eval(Container.DataItem,"gdname")%>
</td>
<td>
<asp:textbox id="Numbers" runat="server" />purchases
</td>
</tr>
<tr>
<td>
<asp:button id="btn1" runat="server" text="Purchase" onclick="purchase" />
</ItemTemplate>
</asp:Repeater>
</tr>
</table>
same goes for the button
so I just need the basics of how to use repeater, btw.. It seems I can't use labels inside the reapeter at all. can't find the id when writing, like it doesent exist at all
Thx =)
Comment