本文介绍了如何在asp.net中添加带控件的Html表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个标题为专业培训的HTML表格,其中包含3个文本框。该文本稍后将作为数据保存在我的数据库中。但是,我希望将另一个专业培训记录添加到数据库中,并附带新数据。所以我拿了一个添加按钮,帮助创建另一个控件。请帮我看看如何创建新控件以及如何将数据插入我的数据库。请。请。请。
Hi,
I have an HTML table titled "Professional Training" which contains 3 text-boxes. The text later gets saved as data in my database. However, I want another "Professional Training" record added into database, with new data. So I take an add button which help the create another control. Please help me with how to create the new controls and how to insert the data into my database. Please. Please. Please.
<table class="TableWorkArea" border="1px" cellpadding="3" style="border-collapse: collapse"> <tr>
<td class="TableHeading" colspan="4">
SECTION G : PROFESSIONAL TRAINING</td>
</tr>
<tr>
<td class="TDLeftLabel" width="18%">
Training On
</td>
<td class="TDRightInput" width="32%">
<asp:TextBox runat="server" ID="txtTrainingOn"
CssClass="TextBoxFixed" TabIndex="14" Width="196px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="TDLeftLabel" width="18%">
Training Duration
</td>
<td class="TDRightInput" width="32%">
<asp:TextBox runat="server" ID="txtTrainingDuration" CssClass="TextBoxFixed" TabIndex="14" Width="196px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="TDLeftLabel" width="18%">
Other Info [If Any]
</td>
<td class="TDRightInput" colspan="3">
<asp:TextBox runat="server" ID="txtTraningOther" CssClass="TextBoxFixed" Width="196px"></asp:TextBox>
</td>
</tr>
<tr>
<td class="TDLeftLabel" colspan="4"><asp:Button ID="btnTraningAdd" runat="server" Text="Add" /></td>
</tr>
<tr><td class="TDLeftLabel" style="padding-removed366px" colspan="4"><asp:Button ID="btnProfessionalTrainingSave" runat="server" Text="Continue" />
<asp:Button ID="btnProfessionalTrainingEdit" runat="server" Text="Edit" /></td></tr>
</table>
推荐答案
这篇关于如何在asp.net中添加带控件的Html表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!