protected void btnSave_Click(object sender, EventArgs e) { CnFLogin objlogin = new CnFLogin(); objlogin.AutoId = Convert.ToInt32(LblCnFId.Text.ToString()); objlogin.EmpID = txtuserid.Text.Trim(); objlogin.CnFId = Convert.ToInt32(ddlCnF.SelectedValue.ToString()); objlogin.Password = Txtpassword.Text.ToString(); objlogin.IsActive = true; objlogin.IsBlocked = false; objlogin.IsSysAdmin = false; objlogin.SaveCnF_UserLoginDetails(); BindLoginGrid(); ClearDetais(); }
public void BindLoginGrid() { grdCnFLogin.DataSource = CnFLogin.GetCnF_Login("all", "").Tables[0]; grdCnFLogin.DataBind(); }