“对象不支持属性或方法'SetVisible'" [英] "Object doesn't support property or method 'SetVisible'"

查看:342
本文介绍了“对象不支持属性或方法'SetVisible'"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次在浏览器上运行我的项目时都会出现上述错误,控件可能会显示,但每次都会出现错误信息,任何帮助都会受到赞赏。谢谢。

i hav the above error every time i run my project on browser, the control could be display but the error message will just appear every time, any help would be appreciated. Thank you.

推荐答案

采取任何控制,没有任何名为 SetVisible in 。净。

只有 可见 在那里。例如,

Take any controls, there is nothing called SetVisible in .NET.
Only Visible is there. For example,
<asp:button id="btn" runat="server" text="Click Me !!" visible="True" xmlns:asp="#unknown" />



或代码落后,


Or in code behind,

btn.Visible = false;



您提供的可见性的命名约定类似于爪哇。所以介意 :)



-KR


And the naming convention for visibility you've provided that is similar to Java. So mind that :)

-KR


这篇关于“对象不支持属性或方法'SetVisible'&quot;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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