コード例 #1
0
    protected void btnAddRole_Click(object sender, EventArgs e)
    {
        if (txtRoleName.Text.CompareTo(String.Empty) != 0)
        {
            DataProvider dp = new DataProvider();
            dp.AddRoles(txtRoleName.Text);

            RolesData.Select();
            ListAllRoles.DataBind();
        }
    }