protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DateTime dt = DateTime.Now; dt.AddHours(5); lblHora.Text = DateTime.Now.AddHours(5).ToString(); if (DadosPostgres.OpenConnection()) { Label4.Text = "Postgres"; DadosPostgres.CloseConnection(); conectado = true; } if (DadosMysql.OpenConnection()) { Label4.Text = "Mysql"; DadosMysql.CloseConnection(); conectado = true; } if (conectado == true) { // AtualizaDados(); } else { Label3.Visible = true; Label4.Visible = true; } } }