protected void save_remision(object sender, EventArgs args) { string msg = string.Empty; try { int idRemision = SalidaCtrl.RemisionAdd(getFormVal()); msg = "Se guardó correctamente el registro"; ClientScript.RegisterStartupScript(this.GetType(), "alertSave", "<script type=\"text/javascript\">alert('" + msg + "');window.location.href='frmRemision.aspx?_fk=" + hf_id_entrada.Value + "&_pk=" + hf_id_entrada_inventario.Value + "&_key=" + idRemision.ToString() + "';</script>"); //window.location.href='frmRemision.aspx?_fk=" + hf_id_entrada.Value + "&_pk=" + hf_id_entrada_inventario.Value + "&_key=" + idRemision.ToString() + "'; //ClientScript.RegisterStartupScript(this.GetType(), "alertSave", "<script type=\"text/javascript\">alert('" + msg + "');window.location.href='frmRemision.aspx?_fk=" + hf_id_entrada.Value + "&_pk=" + hf_id_entrada_inventario.Value + "';</script>"); //btn_save.PostBackUrl = "frmRemision.aspx?_fk=" + hf_id_entrada.Value + "&_pk=" + hf_id_entrada_inventario.Value + "&_key=" + idRemision.ToString(); //fillEntradaInventario(); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }