protected void LoadGrid() { DBConn oConn = new DBConn(); if (oConn.Open()) { cCliente oCliente = new cCliente(ref oConn); oCliente.CodMonitor = CodMonitorView.Value; //oCliente.CodPage = hddCodPage.Value; oCliente.CodPage = oCmbPages.SelectedValue; if (string.IsNullOrEmpty(bVista.Value)) { GridClientes.DataSource = oCliente.GetClientByPageMonitor(); } else { GridClientes.DataSource = oCliente.GetHoldingByPageMonitor(); } GridClientes.DataBind(); } oConn.Close(); }