protected void ClearItems() { TxtPersonalId.Text = string.Empty; CmbGender.ClearSelection(); DP_Birthday.Clear(); TxtFirstName.Text = string.Empty; TxtSecondName.Text = string.Empty; TxtLastName.Text = string.Empty; TxtSecondLastName.Text = string.Empty; TxtPhone.Text = string.Empty; TxtCellPhone.Text = string.Empty; TxtWhatsapp.Text = string.Empty; TxtEmail.Text = string.Empty; TxtAddress.Text = string.Empty; GrdPatients.Rebind(); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack == false) { CmbCategory.DataSource = GetCategory.Tables["GetCategory"]; CmbCategory.DataTextField = "categoryName"; CmbCategory.DataBind(); CmbGender.DataSource = GetGenders.Tables["GetGenders"]; CmbGender.DataTextField = "genre"; CmbGender.DataBind(); CmbSymboleSizes.DataSource = getSymboleSizes.Tables["getSymboleSizes"]; CmbSymboleSizes.DataTextField = "symbole"; CmbSymboleSizes.DataValueField = "sizeID"; CmbSymboleSizes.DataBind(); bindGrid(); } }