/**
         * Se validan las variables de sesion enviadas desde el logueo de la aplicación.
         *
         * Se carga el Gridview con los datos de los pacientes ingresados en el sistema.
         */
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                String typeRol = Session["rol"].ToString();
                if (!typeRol.Equals("usuario"))
                {
                    Response.Redirect("../Login.aspx");
                }
                else
                {
                }
            }
            catch (Exception)
            {
                Response.Redirect("../Login.aspx");
                throw;
            }

            if (!IsPostBack)
            {
                try
                {
                    clsPaciente paciente = new clsPaciente();
                    grdTablaPacientes.DataSource = paciente.mostrarPacientes();
                    grdTablaPacientes.DataBind();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
        /**
         * Evento click fantasma: Representa un boton oculto  que gatilla el updatepanel
         * para el gridview al insertar un nuevo paciente en la ventana modal de registro
         */
        protected void updateGrid_Click(object sender, EventArgs e)
        {
            clsPaciente paciente = new clsPaciente();

            grdTablaPacientes.DataSource = paciente.mostrarPacientes();
            grdTablaPacientes.DataBind();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             clsPaciente paciente = new clsPaciente();
             grdTablaPacientes.DataSource = paciente.mostrarPacientes();
             grdTablaPacientes.DataBind();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }