protected void Page_Load(object sender, EventArgs e) { try { client = new WSRevisiones.WS_RevisionesClient(); string fileJSON = client.consultaRevisiones(); DataTable dt = (DataTable)JsonConvert.DeserializeObject(fileJSON, typeof(DataTable)); GridView_Revisiones.DataSource = dt; if (!IsPostBack) { GridView_Revisiones.DataBind(); cambiarContenidoAnimal(); cambiarContenidoVeterinario(); } } catch (Exception ex) { Response.Write("<script language=javascript> alert('" + ex.Message + "'); </script>"); } }
protected void GridView_Revisiones_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridView_Revisiones.PageIndex = e.NewPageIndex; GridView_Revisiones.DataBind(); }