private void btnadd_Click(object sender, System.EventArgs e)
 {
string username=this.username.Text;
string uname=this.uname.Text;
string password=this.password.Text;
string Purview;
if(this.RadioButton1.Checked)
{
Purview="超级管理员";
}
else
{
Purview="普通管理员";
}
foreach (System.Web.UI.WebControls.DataListItem dl in this.DataList1.Items)
{
CheckBox chk = (CheckBox)dl.FindControl("ChkSelect");
if(chk.Checked)
{
string userID =this.DataList1.DataKeys[e.Item.ItemIndex].ToString();
Response.Write(userID);//在这个地方取值把选中的至链接起来
Response.End();
}
     }}