FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 12227|回复: 14
打印 上一主题 下一主题

ExtAspNet.Alert提示后页面跳转的问题

[复制链接]
跳转到指定楼层
楼主
发表于 2012-4-18 11:33:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用
ExtAspNet.Alert.Show("填写成功!");
弹出提示后,怎样页面跳转?
提示“填写成功后”需跳转至成功页面Success.aspx

怎么实现?


沙发
发表于 2012-4-18 12:18:01 | 只看该作者
Response.Redirect("Success.aspx");
板凳
发表于 2012-4-18 12:45:23 来自手机 | 只看该作者
Alert.show还有几个重载函数可用
地板
 楼主| 发表于 2012-4-18 13:04:18 | 只看该作者
Landroid 发表于 2012-4-18 12:18
Response.Redirect("Success.aspx");

这样写会直接跳转至  Success.aspx 而不出现 alert提示。我要的是先提示,再跳转
5#
 楼主| 发表于 2012-4-18 13:11:59 | 只看该作者
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啊??
6#
发表于 2012-4-18 13:22:59 | 只看该作者
乾堃大挪移 发表于 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中写跳转,这样是点了确定,才跳转
7#
发表于 2012-4-18 15:33:57 | 只看该作者
Landroid 发表于 2012-4-18 13:22
两种方法:
1、用Alert.ShowInParent或者Alert.ShowInTop(),然后redirect,这样是不管有没有点确定,都已 ...
  1. Alert.Show("message", "title", “window.location.href='./success.aspx'”);
复制代码
8#
 楼主| 发表于 2012-4-21 20:25:00 | 只看该作者
support 发表于 2012-4-18 15:33

非常感谢!成功了!
9#
 楼主| 发表于 2012-4-21 20:25:58 | 只看该作者
Landroid 发表于 2012-4-18 13:22
两种方法:
1、用Alert.ShowInParent或者Alert.ShowInTop(),然后redirect,这样是不管有没有点确定,都已 ...

非常感谢!
10#
发表于 2012-5-12 16:21:22 | 只看该作者
support 发表于 2012-4-18 15:33

学习了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-5-14 05:32 , Processed in 0.051667 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表