FineUI 官方论坛

标题: ExtAspNet.Alert提示后页面跳转的问题 [打印本页]

作者: 乾堃大挪移    时间: 2012-4-18 11:33
标题: ExtAspNet.Alert提示后页面跳转的问题
使用
ExtAspNet.Alert.Show("填写成功!");
弹出提示后,怎样页面跳转?
提示“填写成功后”需跳转至成功页面Success.aspx

怎么实现?



作者: Landroid    时间: 2012-4-18 12:18
Response.Redirect("Success.aspx");
作者: support    时间: 2012-4-18 12:45
Alert.show还有几个重载函数可用
作者: 乾堃大挪移    时间: 2012-4-18 13:04
Landroid 发表于 2012-4-18 12:18
Response.Redirect("Success.aspx");

这样写会直接跳转至  Success.aspx 而不出现 alert提示。我要的是先提示,再跳转
作者: 乾堃大挪移    时间: 2012-4-18 13:11
support 发表于 2012-4-18 12:45
Alert.show还有几个重载函数可用

        public static void Show(string message);
        public static void Show(string message, MessageBoxIcon icon);
        public static void Show(string message, string title);
        public static void Show(string message, string title, MessageBoxIcon icon);
        public static void Show(string message, string title, string okScript);
        public static void Show(string message, string title, MessageBoxIcon icon, string okScript);

没有可以跳出提示后再跳转页面的url啊??
作者: Landroid    时间: 2012-4-18 13:22
乾堃大挪移 发表于 2012-4-18 13:11
public static void Show(string message);
        public static void Show(string message, M ...

两种方法:
1、用Alert.ShowInParent或者Alert.ShowInTop(),然后redirect,这样是不管有没有点确定,都已经跳转了。

2、okscript中写跳转,这样是点了确定,才跳转
作者: support    时间: 2012-4-18 15:33
Landroid 发表于 2012-4-18 13:22
两种方法:
1、用Alert.ShowInParent或者Alert.ShowInTop(),然后redirect,这样是不管有没有点确定,都已 ...
  1. Alert.Show("message", "title", “window.location.href='./success.aspx'”);
复制代码

作者: 乾堃大挪移    时间: 2012-4-21 20:25
support 发表于 2012-4-18 15:33

非常感谢!成功了!
作者: 乾堃大挪移    时间: 2012-4-21 20:25
Landroid 发表于 2012-4-18 13:22
两种方法:
1、用Alert.ShowInParent或者Alert.ShowInTop(),然后redirect,这样是不管有没有点确定,都已 ...

非常感谢!
作者: 看!似狼    时间: 2012-5-12 16:21
support 发表于 2012-4-18 15:33

学习了!
作者: 575780781    时间: 2012-9-5 01:31
学习复习:
Alert提示后页面跳转,使用“Alert.Show("message","title","window.location.href='./xxx.aspx'");”

作者: ~~疯狂~~    时间: 2012-9-6 08:09
support 发表于 2012-4-18 15:33

所给的代码后面的引号有错误,修改后可以正常使用,非常感谢!

Alert.Show("注册成功!", "提示", "window.location.href='./Proposal.aspx'");
作者: 疯狂KG    时间: 2012-9-29 08:55
学习了方法了
作者: yxsyjin    时间: 2012-10-13 14:10
顶,希望回贴的人越来越多!
作者: Murphy    时间: 2012-10-29 00:36
问题在于跳转了以后,主页上面的tab的title依然没变。纠结啊。




欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/) Powered by Discuz! X3.4