首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

asp页面跳转有关问题,对话框不显示,直接就跳转了

2012-09-20 
asp页面跳转问题,对话框不显示,直接就跳转了g.SuppliesValidDate this.df_SuppliesVilidDate.SelectedDa

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>");

热点排行