我有asp.net Repeater,使用插入数据库重复3个控件
textbox
名称textbox
代码
和button
使用实体模型将其插入数据库
我有如何用每个项目调用它的方法?
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate >
<div>
<div id="outer" style=" background-color:lightblue "><center><%# Eval("LangaugeName")%> </center></div>
<div id="LangId" style="display :none "><center><%# Eval("LangId")%> </center></div>
<br />
<br />
<div class="text-center">
<strong>Zone Name </strong>
<input id="TxtZoneName" style="width: 295px" type="text" runat ="server" />
</div>
<div ><br /></div>
<div class="text-center">
<strong>Zone Code </strong>
<input id="txtZoneCode" style="width: 295px" type="text" runat ="server" />
</div>
<div class="text-center">
<br />
<asp:Button ID="Button2" runat="server" Text="Add" style=" background-color :azure " />
<br />
<br />
</div>
</div>
</ItemTemplate>
</asp:Repeater>