private void ListActivosDelivery() { string test = SelectEmployeeDelivery.Value; string[] palabras = test.Split('/'); string cc = Page.Server.HtmlDecode(palabras[0]); try { String bd = Session["BD"].ToString(); var registros = Controlasql.ClistDeployeeDelivery(cc, bd); if (registros.Tables[0].Rows.Count > 0) { GridDelivery.DataSource = registros; GridDelivery.DataBind(); } else { GridDelivery.DataSource = null; GridDelivery.DataBind(); } } catch (Exception e) { notificacion.Visible = false; txtnotifica.InnerText = "" + e.Message; } }