如何淡入aspx页面并打开按钮对话框单击aspx页面 [英] How to fade the aspx page and open the dialog on buttonClick in aspx page

查看:113
本文介绍了如何淡入aspx页面并打开按钮对话框单击aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Defaulttimesheet.aspx页面包含两个按钮(搜索和返回)以及一个属性为visible = false的多视图.最初,当我单击搜索按钮时,我的页面仅显示两个(搜索和后退)按钮,默认的timesheet.aspx页面颜色变为褪色并以白色显示多视图.多视图包含带有过滤器按钮的工具栏,当我单击此过滤器按钮时,它应将多视图颜色更改为淡入淡出并打开搜索对话框,当我关闭对话框时,多视图颜色应更改为白色.能够打开对话框,但不能使视图褪色.我怎样才能做到这一点?任何人请帮助我..............

在此先感谢

Defaulttimesheet.aspx page in my application contains two buttons(search and back) and a multiview with attribute visible=false. Initially my page displays only two(Search and back) buttons when i click on search button the defaulttimesheet.aspx page colour changes to fade and displays multiview in white color. multiview contains toolbar with filter button, when i clicked on this filter button it should change the multiview colour to fade and open a search dialog also when i close the dialog the multiview colour should changed to white. Am able to open the dialog but not possible to fade the view. How can i do this? Anyone plz help me..............

Thanks in advance

推荐答案

添加一个id = divSearch的divtag并将多视图内容放入该div中.
在openDialog的defaulttimesheet.aspx中,此代码在showmodaldialog之前消失了

Add one divtag with id=divSearch and place the multiview content inside that div.
In defaulttimesheet.aspx inside openDialog added this code to fade before showmodaldialog


get(''<%= divSearch.ClientID%>'').className =灰色";

以及showmodaldialog之后的以下代码

get(''<%=divSearch.ClientID %>'').className = "gray";

and following code after showmodaldialog


get(''<%= divSearch.ClientID%>'').className ="white"; ..

将这两个类添加到default.css
get(''<%=divSearch.ClientID %>'').className = "white";.

Add these two classes inside default.css
.gray
    {
        position: absolute;
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%; /*background-color: gray;*/
        opacity: .5;
        filter: alpha(opacity=50);
    }

    .white
    {
        position: absolute;
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%;
        opacity: 1;
        filter: alpha(opacity=100);
    }


这篇关于如何淡入aspx页面并打开按钮对话框单击aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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