Example #1
0
 protected override void OnPreRender(EventArgs e)
 {
     if (User == String.Empty || (Membership.GetUser(User) == null))
     {
         GridView1.DataSource = null;
     }
     else
     {
         GridView1.DataSource = RolesDS.SelectUsersRole(User);
     }
     GridView1.DataBind();
     base.OnPreRender(e);
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                roles_lst.DataValueField = "Role";
                roles_lst.DataSource     = RolesDS.Select();
            }
            CreateUserWizard1.CreatingUser += new LoginCancelEventHandler(CreateUserWizard1_CreatingUser);
            CreateUserWizard1.CreatedUser  += new EventHandler(CreateUserWizard1_CreatedUser);
            Button bt = Master.FindControl("Back") as Button;

            if (bt != null)
            {
                bt.PostBackUrl = "Default.aspx";
            }
        }
Example #3
0
 protected void Click_Yes(object sender, EventArgs e)
 {
     RolesDS.Delete(Role);
     mv.ActiveViewIndex = 0;
 }
Example #4
0
 protected void Click_Yes(object sender, EventArgs e)
 {
     RolesDS.DeleteUser(User_name);
     //Roles_gv.DataBind ();
     mv.ActiveViewIndex = 0;
 }