从a.aspx页面禁用Web用户控件中的按钮 [英] disable a button in web user control from a.aspx page
本文介绍了从a.aspx页面禁用Web用户控件中的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,请帮帮我
我有一个网页用户控件,其中包含一个按钮('注销')
我使用这个网页ex.aspx中的用户控件,此页面包含一个按钮(开始)
现在我需要在单击按钮时启用按钮(注销)(开始)
如何从代码中的页面访问webusercontrol中的按钮
sir please help me
I have a web user control which contains a button ('logout')
I use this web user control in a Ex.aspx and this page contains a button(start)
Now i need to disable button (logout) when i click button (start)
How can i acess a button in webusercontrol from a page in code behind
推荐答案
我认为这就是你要找的内容
代码在你的按钮后面(开始)点击
{
i think this is what you are looking for
In code Behind of your button (start) click
{
Button btn = (Button)webusercontrol1.FindControl("logout");
btn.Enabled=false;
}
快乐编码..
}
Happy codding..
这篇关于从a.aspx页面禁用Web用户控件中的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文