如何在他的点击中看到一个主页按钮? [英] How Do I Visible False A Master Page Button On His Click ?

查看:111
本文介绍了如何在他的点击中看到一个主页按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在他的点击上显示false一个母版页按钮

how to make visible false a master page button on his click

推荐答案

如果你想隐藏按钮,比如说Default.aspx页面使用以下 -

this.Master.FindControl(myButton)。Visible = false;
If you want to hide the button in, say, the Default.aspx page use the following -
this.Master.FindControl("myButton").Visible = false;


In按钮的click事件处理程序,将Visible属性的值更改为false。

例如:



In the click event handler of the button, change the value of Visible property to false.
For example:

btn1.Visible = false;


这篇关于如何在他的点击中看到一个主页按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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