我是.net新手,请大家帮我看看这段程序吧,我想让填的这些数据显示在table上,然后对选中的数据进行删除,还可以添加信息会显示到下面同时清空上面的信息
<b><font size="4" color="#000000">2.主要参加者:</font></b><p>;姓名
<input type="text" runat ="server" id="T168" size="15" style="font-family: 宋体; font-size: 12pt">;
性别;
<!--webbot b-disallow-first-item="TRUE" bot="Validation"
s-display-name="请选择" -->
<select size="1" runat ="server" id="D82" style="font-family: 宋体; font-size: 12pt">
<option>请选择</option>
<option>男</option>
<option>女</option>
</select>; 出生年月;
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." -->
<input type="text" runat ="server" id="T169" size="5" style="font-family: 宋体; font-size: 12pt" />年<!--webbot
bot="Validation" s-data-type="Number" s-number-separators=",." --><input type="text" runat ="server" id="T170" size="2" style="font-family: 宋体; font-size: 12pt" />月<!--webbot
bot="Validation" s-data-type="Number" s-number-separators=",." --><input type="text" runat ="server" id="T171" size="2" style="font-family: 宋体; font-size: 12pt" />日
专业职务;
<!--webbot b-disallow-first-item="TRUE" bot="Validation"
s-display-name="请选择" -->
<select size="1" runat ="server" id="D83" style="font-family: 宋体; font-size: 12pt">
<option>请选择</option>
<option>A 正高级(教授、研究员等)</option>
<option>B 副高级(副教授、副研究员等)</option>
<option>C 中级(讲师、助理研究员等)</option>
<option>D 初级(助教等)以下</option>
</select>
</p>
<p>; 研究专长;
<!--webbot b-disallow-first-item="TRUE"
bot="Validation" s-display-name="请选择" -->
<select size="1" runat ="server" id="D84" style="font-size: 12pt">
<option selected="selected" >请选择</option>
<option>KSA 马、恩、列、斯思想研究</option>
<option>KSB 易做图思想、易做图理论研究</option>
<option>KSC 马克思主义思想史</option>
<option>JLM 理论经济其他学科</option>
</select> 学历
<!--webbot b-disallow-first-item="TRUE" bot="Validation"
s-display-name="请选择" -->
<select size="1" runat ="server" id="D85" style="font-family: 宋体; font-size: 12pt" >
<option>请选择</option>
<option>A 研究生</option>
<option>B 大学本科</option>
<option>C 大学专科</option>
<option>D 中专以下</option>
</select> 学位
<select size="1" runat ="server" id="D86" style="font-family: 宋体; font-size: 12pt">
<option>请选择</option>
<option>A 博士</option>
<option>B 硕士</option>
<option>C 学士</option>
</select> 工作单位
<input type="text" runat ="server" id="T172" size="26" style="font-family: 宋体; font-size: 12pt" /></p>
<p> </p>
<div align="center">
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="width: 1238px; border-collapse: collapse; border: medium none">
<tr>
<td style="border-left: 1.0pt solid #8EACD0; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" colspan="9" height="35" width="1232" valign="middle">
<p align="center">
主 要 参 加 者 <asp:Button
ID="Button1" runat="server" onclick="Button1_Click" Text="删除" /></td>
</tr>
<tr>
<td style="border-left: 1.0pt solid #8EACD0; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="43" valign="middle">
<p class="MsoNormal" align="center" style="text-align: center">
序号</td>
<td style="width: 97px; border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" valign="middle">
<p class="MsoNormal" align="center">姓名</td>
<td style="width: 46px; border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" valign="middle">
<p class="MsoNormal" align="center">性别</td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="106" valign="middle">
<p class="MsoNormal" align="center">出生年月</td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="112" valign="middle">
<p class="MsoNormal" align="center">专业职务</td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="269" valign="middle">
<p class="MsoNormal" align="center">研究专长</td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="50" valign="middle">
<p class="MsoNormal" align="center">学历</td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="53" valign="middle">
<p class="MsoNormal" align="center">学位</td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: 1.0pt solid #8EACD0; border-bottom: 3px double #8EACD0; padding: .75pt" width="424" valign="middle">
<p class="MsoNormal" align="center">所在单位</td>
</tr>
<tr>
<td style="border-left: 1.0pt solid #8EACD0; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" height="0" width="43" valign="middle">
<p class="MsoNormal" align="center">
<input type="checkbox" name="list.1.fx" value="true" />1</td>
<td style="width: 97px; border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" height="0" valign="middle"> </td>
<td style="width: 46px; border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" height="0" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="106" height="0" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="112" height="0" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="269" height="0" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="50" height="0" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="53" height="0" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="424" height="0" valign="middle"> </td>
</tr>
<tr>
<td style="border-left: 1.0pt solid #8EACD0; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="43" valign="middle">
<p class="MsoNormal" align="center" style="text-align: center">
<input type="checkbox" name="list.1.fx0" value="true">2</td>
<td style="width: 97px; border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" valign="middle"> </td>
<td style="width: 46px; border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="106" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="112" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="269" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="50" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="53" valign="middle"> </td>
<td style="border-left: medium none; border-right: 1.0pt solid #8EACD0; border-top: medium none; border-bottom: 1.0pt solid #8EACD0; padding: .75pt" width="424" valign="middle"> </td>
</tr>
</table>
</div>
<p>
<asp:Button
ID="Button2" runat="server" onclick="Button2_Click" Text="继续添加" /></p></div>
--------------------编程问答-------------------- 可以使用js。 获取需要的信息 然后插入到table中。。 --------------------编程问答-------------------- 太乱了。
添加成功重新绑定一下,取最新的数据就可以了。 --------------------编程问答-------------------- 麻烦大家说的详细点吧~~嘿嘿,,最好能写几句代码让我参考一下,多谢啦 --------------------编程问答-------------------- 我帮你写了一个,里面的代码需要你自己优化,我帮你写了一些虚拟数据.你加我QQ740303282,我传给你.
补充:.NET技术 , ASP.NET