Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
    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();
        }
    }