本人菜鸟,请求各位大侠帮忙
如何实现datalist中checkbox与DataList1_ItemCommand事件关联,即选中某一个CheckBox的时候,单击“接受”,实现添加数据功能????
管理员页面 Admin.aspx为:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin.aspx.cs" Inherits="Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>管理员页面</title>
<style type="text/css">
.styleTable
{
text-align:center ; width :100%
}
.styleCell
{
font-size :16pt; font-family :华文彩云; color :#669900;
}
.stylePage
{
width: 70px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="DataList1" runat="server" Width ="100%"
onitemcommand="DataList1_ItemCommand">
<HeaderTemplate>
<table class="styleTable">
<tr> <td colspan="5" ><h1>申请用户信息</h1></td></tr>
<tr class =" styleCell">
<td>
选择</td>
<td>
邮箱</td>
<td>
密码</td>
<td>