日期:2014-05-17  浏览次数:20442 次

asp页面跳转问题,对话框不显示,直接就跳转了
g.SuppliesValidDate = this.df_SuppliesVilidDate.SelectedDate;
g.SuppliesfactoryName = this.txt_SuppliesfactoryName.Text.Trim();
g.SuppliesRemark = this.txtA_SuppliesRemark.Text.Trim();
g.Save();
 
MessageUtil.MsgBox("error", "添加数据成功", MessageBox.Button.OKCANCEL, MessageBox.Icon.ERROR);

Response.Redirect("/OA/SuppliesManage/SuppliesInEdit.aspx?");

“添加数据成功”对话框没有出现,直接跳到下一页了,那位哥哥有好办法?




------解决方案--------------------
web不是winform
------解决方案--------------------
只能调用这样的JS进行跳转

 alert('增加成功。');window.location.href='xx.asp'
------解决方案--------------------
用JavaScript试试。2楼的方法应该没问题。
------解决方案--------------------
你的代码没有错 .net机制就是这样的 2楼的方法可以帮你实现
------解决方案--------------------
探讨

只能调用这样的JS进行跳转

alert('增加成功。');window.location.href='xx.asp'

------解决方案--------------------
Response.Write("<script>alert('添加数据成功');location.href='/OA/SuppliesManage/SuppliesInEdit.aspx';</script>");