如果普通表意味着我得到输出,否则我怎么得到它?我的aspx页面:
<%@ Page Title="" Language="VB" MasterPageFile="~/UserRegistration.master" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript">
$(function() {
$("[id$=txtdate]").datepicker({
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'image/datepicker2.jpg'
});
});
</script>
<br />
<br />
<div align="center">
<asp:Label ID="label2" CssClass="label" runat="server"></asp:Label>
</div>
<div align="center">
<asp:TextBox ID="txtdate" DataFormatString="{0:MM/dd/yyyy}" AutoPostBack="true" runat="server" Width="107px"></asp:TextBox>
</div>
<br />
<br />
<table id="Table1" align="center" border="1" runat="server">
<tr>
<th>
TeamName
</th>
<th>
TeamMember
</th>
</tr>
<tr>
<td>
<asp:Label ID="lbl1" runat="server"> Team A </asp:Label>
</td>
<td>
<asp:CheckBoxList ID="cblbind" runat="server">
<asp:ListItem Text="Sinthu"></asp:ListItem>
<asp:ListItem Text="susi"></asp:ListItem>
<asp:ListItem Text="siva"></asp:ListItem>
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label1" runat="server"> Team B </asp:Label>
</td>
<td>
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem Text="kavya"></asp:ListItem>
<asp:ListItem Text="subathra"></asp:ListItem>
<asp:ListItem Text="mani"></asp:ListItem>
<asp:ListItem Text="sunila"></asp:ListItem>
</asp:CheckBoxList>
</td>
</tr>
</table>
<div align="center">
<asp:Button ID="btnSubmit" Text="SUBMIT" runat="server" />
</div>
<br />
<br />
这里我直接放置了这些值,这样我就可以轻松搞定。
如果团队名称值和团队成员值在数据库中,则意味着我如何使用表格绑定这些项目?如果listview gridview意味着使用绑定事件,我可以在表中使用什么以及如何获得所需的输出?