禁用Windows弹出式ASP.NET [英] Disable Windows Popup aspnet

查看:69
本文介绍了禁用Windows弹出式ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了弹出窗口,但我想禁用最大化和最小化按钮.

下面的代码:

Hi All,

I create popup but i want to disable maximize and minimize button.

This code below:

Button1.Attributes.Add("onclick","window.open(''Default2.aspx'','''',''resizable=no,height=300,width=300'');return false");


但这不起作用!

我尝试在浏览器中使用firefox 3.6,chrome 12.0.742.122和IE

有人可以帮我吗?


But it doesn''t work!!

I try in browser firefox 3.6 ,chrome 12.0.742.122 and IE

Can someone help me...

推荐答案

可调整大小的功能将不允许用户调整窗口的大小,它还会锁定最大化按钮,这会引起感觉.
我不确定您是否可以立即控制最大化/最小化按钮.
The resizable will not allow the user to resize the window , it also locks the maximize button which makes sens.
I am not sure you can have control over maximize/minimize button straight away.


改为使用jQuery UI对话框(如果可以应用).

jQuery UI对话框演示 [
Uses jQuery UI dialog instead (if it can apply).

jQuery UI dialog demo[^]

jQuery dialogs are displayed over your page content and would be the prefered way to display temporary dialog.

There are some cases when it does apply well while other cases it does not make sense. For exemple, should the user be able to navigate in the new windows/dialog.


它可能对您有帮助,

如何在ASP.Net中禁用最小化按钮? [ ^ ]

:)
It might help you,

How to disable minimize button in ASP.Net?[^]

:)


这篇关于禁用Windows弹出式ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆