FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

alert去掉关闭按钮,去掉X

已有 771 次阅读2015-11-6 10:33 |个人分类:Fineui 分享

参考:http://fineui.com/bbs/forum.php?mod=viewthread&tid=7455&highlight=alert
          http://www.jb51.net/article/35247.htm

====================

    /// <summary>
    /// 不带关闭按钮的,提示框(结合window的Onclose事件使用)
    /// </summary>
    /// <param name="message">消息</param>
    protected void AlertInforNoClose(string message)
    {
        string js = @" Ext.Msg.show({ 
                                    title : '提示对话框', 
                                    msg : '" + message + @"', 
                                    buttons: Ext.Msg.OK, 
                                    fn:function(){" + ActiveWindow.GetHidePostBackReference() + @"},
                                    closable: false 
                                    }); ";


        //ActiveWindow.GetHidePostBackReference() //弹层页用,结合window的Onclose事件使用
        PageContext.RegisterStartupScript(js);
    }


路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

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

GMT+8, 2024-5-2 23:16 , Processed in 0.033155 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

返回顶部