如何隐藏部分aspx页面 [英] How to hide part an aspx page

查看:116
本文介绍了如何隐藏部分aspx页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个母版页,我有一个菜单项,当我点击每个项目时,应该显示特定的点击页面。

我从web.config文件获取该页面(该页面的链接。)

现在在显示该页面之前,我想要隐藏其中的不可用数据,并应显示剩余的页面。即,我必须隐藏页面的某些部分才能在屏幕上显示..

如果有人遇到同样的问题,请帮助我。



在此先感谢

Hi,
I have a master page and in that i have a menu item and when i click on each item that particular clicked page should be displayed.
I am getting that pages from web.config file(links for that pages.)
And now before displaying that page i want to hide unuseful data of that and should display the remaining page. i.e.,i have to hide some part of the page before displaying on the screen..
Please help me if anyone faced the same issue.

Thanks in advance

推荐答案

在下面试试,可能会有所帮助。



注意:有vb.net代码在下面的链接中,但很容易转换为C#

如何动态显示或隐藏控件 [ ^ ]



http://stackoverflow.com/questions/11459914/show-hide-panels-in-asp-net -c-sharp-after-submission-form [ ^ ]



http://stackoverflow.com/questions/21030431/how-to-hide- div-present-in-master-page-on-dashboard-page-load-in-asp-net [ ^ ]
try below , might give some idea.

Note : There is vb.net code in the below link , but easily can be converted to C#
How to Show or Hide Controls Dynamically[^]

http://stackoverflow.com/questions/11459914/show-hide-panels-in-asp-net-c-sharp-after-submitting-form[^]

http://stackoverflow.com/questions/21030431/how-to-hide-div-present-in-master-page-on-dashboard-page-load-in-asp-net[^]


您可以设置两个服务器端属性(

即myPanel.Visible = false



和客户端ie jQuery


There are both server side properties which you can set (
i.e. myPanel.Visible = false
)
and client side i.e. jQuery


(#myPanel)。css(display,none);





取决于您应该隐藏多少页面以及在哪些条件下。





如果这有帮助,请花时间接受解决方案。谢谢。
("#myPanel").css("display", "none");


Depends on how much of the page you should have hidden and under which conditions.


If this helps please take time to accept the solution. Thank you.


这篇关于如何隐藏部分aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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