//-----------------------boton--------------------------------
    protected void B_ingresar_autor_Click(object sender, EventArgs e)
    {
        ClientScriptManager cm = this.ClientScript;
        //obetenmos las variables
        string nombre = TB_autor_nombre.Text.ToString();
        string fecha_birth = TB_autor_birth.Text.ToString();
        string fecha_death = TB_autor_death.Text.ToString();
        string pais = DDL_autor_nacionalidad.SelectedValue.ToString();
        string foto="sin foto";
        string descripcion = TB_autor_descripcion.Text.ToString();
        Boolean estado_check = CheckBox1.Checked;

        L_Ingresar_autor operacion = new L_Ingresar_autor();
        U_Ingresar_autor datos_registro = operacion.ingresar_autor(nombre, fecha_birth, fecha_death, pais, foto, descripcion,
                                                                    estado_check, Session["fotos"], Session["rolID"]);

        Session["fotos"] = datos_registro.Session_fotos;
        llenar_grilla();
        cm.RegisterClientScriptBlock(this.GetType(), "", datos_registro.Mensajes);
        
    }