Esempio n. 1
0
        protected void btnTestCommon_Click(object sender, EventArgs e)
        {
            try
            {
                DataTable table = new DataTable();

                Framework.DataServices.CommonDatabase db = new Framework.DataServices.CommonDatabase("DBProvider");
                table = db.ExecuteFill(CommandType.Text, this.lblSelect.Text, false, "Thoris");


                this.GridView3.DataSource = table;
                this.GridView3.DataBind();

                this.lblStatusSelectCommon.Text = "Select executado com exito.";
            }
            catch (Exception ex)
            {
                this.lblStatusSelectCommon.Text = "Erro ao executar o select." + ex.Message;
            }
        }