protected void BtnAdd_Click(object sender, EventArgs e) { if (Session["id"] != null) { } i = obj.AddStaffType(txtype.Text, "Admin", 1, DateTime.Now.ToString()); if (i > 0) { lblmsg.Text = "Data Has Been Saved"; BindData(); ClearFields(); Response.Redirect("AddStafTypeMaster.aspx"); } }