protected void Button5_Click(object sender, EventArgs e) { s = new Service1(); if (sender != null) { String datos = s.buscarUsuario(this.TextBox18.Text); DataTable tabla = JsonConvert.DeserializeObject <DataTable>(datos); tabla.TableName = "lista_usuarios"; // GridView vista = new GridView(); this.GridView3.AutoGenerateColumns = true; this.GridView3.DataSource = tabla; this.GridView3.DataMember = "lista_usuarios"; this.GridView3.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { s = new Service1(); this.row_edicion.Visible = false; this.row_alta.Visible = false; this.div_contacto.Visible = false; this.div_movie.Visible = false; try { if (!IsPostBack) { llenarGrid(); } } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { this.s = new Service1(); }