I want to store the repeater control value to database table. I have a repeater control with three lable with corresponding textbox.
<asp:Repeater ID="RepeatInformation" runat="server">
<ItemTemplate>
<tr>
<td valign="top" class="style3">
<%#DataBinder.Eval(Container,"DataItem.fldleavename")%>
</td>
<td valign="top">
<asp:TextBox ID="TextBox1" runat="server" CssClass="textbox" ></asp:TextBox>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
repeater control format:
Casual Leave : Textbox1
Medical Leave : Textbox1
Annual Leave : Textbox1
how can i store the repeater value to database. I don’t have an idea for storing this value please help me ..
On a side note. I would consider revising the names of your controls. It’ll make life a lot easier in the future if you adopt some sort of convention and use camel case.
With regards to saving this to a database – it entirely depends on how you’re dealing with data access at the moment. That’s another question altogether I think.