Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         client = new WSCuida.WS_CuidaClient();
         string    fileJSON = client.consultaCuida();
         DataTable dt       = (DataTable)JsonConvert.DeserializeObject(fileJSON, typeof(DataTable));
         GridView_Cuida.DataSource = dt;
         if (!IsPostBack)
         {
             GridView_Cuida.DataBind();
             cambiarContenidoAnimal();
             cambiarContenidoCuidador();
         }
     }
     catch (Exception ex)
     {
         Response.Write("<script language=javascript> alert('" + ex.Message + "'); </script>");
     }
 }
Example #2
0
 protected void GridView_Cuida_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GridView_Cuida.PageIndex = e.NewPageIndex;
     GridView_Cuida.DataBind();
 }