protected void save_inventario(object sender, EventArgs args) { try { EntradaCtrl.InventarioAdd(VSLstEntPiso); ClientScript.RegisterStartupScript(this.GetType(), "alertSave", "<script type=\"text/javascript\">alert('Se guardó correctamente el registro');window.location.href='frmInventario.aspx?_kp=" + hf_id_entrada.Value + "';</script>"); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }