禁用Windows弹出式ASP.NET

编程入门 行业动态 更新时间:2024-10-25 16:22:41
本文介绍了禁用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对话框演示 [ ^ ] jQuery对话框显示在页面内容上,将是显示临时对话框的首选方式. 在某些情况下,它确实适用得很好,而在其他情况下,这是没有意义的.例如,用户是否应该能够在新的窗口/对话框中导航. 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

本文发布于:2023-08-06 04:47:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1310160.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出式   Windows   NET   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!