protected void change_referencia(object sender, EventArgs args) { try { txt_trafico.Text = string.Empty; hf_pedidos.Value = string.Empty; VSLstEntLiv = EntradaCtrl.EntradaLiverpoolLstByReferencia(txt_referencia.Text.Trim()); if (VSLstEntLiv.Count > 0) { hf_pedidos.Value = Newtonsoft.Json.JsonConvert.SerializeObject(VSLstEntLiv); txt_trafico.Text = VSLstEntLiv.First().Trafico; fillGrd_pedidos(); } } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }