Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何显示html表内绑定的复选框列表和标签_Asp.net_Vb.net - Fatal编程技术网

Asp.net 如何显示html表内绑定的复选框列表和标签

Asp.net 如何显示html表内绑定的复选框列表和标签,asp.net,vb.net,Asp.net,Vb.net,如果正常表意味着我得到了输出,否则我如何得到它?我的aspx页面: <%@ Page Title="" Language="VB" MasterPageFile="~/UserRegistration.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" run

如果正常表意味着我得到了输出,否则我如何得到它?我的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意味着使用绑定事件,那么我可以在表中使用什么以及如何获得所需的输出?

我在listview中也使用了同样的概念。但是使用html表格意味着我不能。。我是初学者。。。所以,如果你知道的意思是帮助我…我使用了html表,那么该表包含2列第一列绑定数据库,该团队名称显示为标签,但第二列类似于基于团队名称的团队成员列绑定。。。如果团队名称有4个名称,如aa、bb、cc、dd,则表示将显示该名称复选框列表。我想喜欢这个输出TeamName TeamMember团队A团队B在团队成员侧我想显示复选框列表中的项目。。。它基本上在listview gridview中,repeater意味着我们可以很容易地获得输出。。但在普通html中,表表示如何绑定???若团队名称值和团队成员值在数据库中,则表示如何使用表绑定此项。。如果列表视图网格视图意味着使用绑定事件,但在表中,我可以使用什么以及如何获得所需的输出?…帮助我…是的,更正先生…但是基于团队名称的团队成员值先生…如果团队A有3个成员,团队B有2个成员,团队C有4个成员,等等,我如何为此编写代码?