ProfReynolds
Programmer
I'm sure that I'm just brain dead. But any help would sure be appreciated.
I have a repeater control with 4 columns: Qty, Desc, Unit, Extension. The Desc and UnitPrice columns are populated from the database, the user entered in a text box for the first column, and I calculate the last column.
But I can't seem to get reference to these text boxes.
Any ideas?
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table align="center" border="0" cellpadding="2" cellspacing="2" width="550">
<tr>
<th bgcolor="#cccccc" width="15%" align="center">Quantity</th>
<th bgcolor="#cccccc" width="55%" align="left">Product Name</th>
<th bgcolor="#cccccc" width="15%" align="right">Unit Price</th>
<th bgcolor="#cccccc" width="15%" align="right">Extension</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center">
<asp:TextBox ID="TextBox1" runat="server" Text="0"
AutoPostBack="true" ></asp:TextBox>
</td>
<td align="left"><%# Eval("ProductName")%></td>
<td align="right"><%# Eval("UnitPrice")%></td>
<td align="right"></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
I have a repeater control with 4 columns: Qty, Desc, Unit, Extension. The Desc and UnitPrice columns are populated from the database, the user entered in a text box for the first column, and I calculate the last column.
But I can't seem to get reference to these text boxes.
Any ideas?
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table align="center" border="0" cellpadding="2" cellspacing="2" width="550">
<tr>
<th bgcolor="#cccccc" width="15%" align="center">Quantity</th>
<th bgcolor="#cccccc" width="55%" align="left">Product Name</th>
<th bgcolor="#cccccc" width="15%" align="right">Unit Price</th>
<th bgcolor="#cccccc" width="15%" align="right">Extension</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td align="center">
<asp:TextBox ID="TextBox1" runat="server" Text="0"
AutoPostBack="true" ></asp:TextBox>
</td>
<td align="left"><%# Eval("ProductName")%></td>
<td align="right"><%# Eval("UnitPrice")%></td>
<td align="right"></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>