注销按钮可见属性 [英] Sign out Button visible property

查看:82
本文介绍了注销按钮可见属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的项目中,当用户登录时,应该有一个可见的退出按钮.
即使我在后面的代码中将visible属性设置为true,也不会显示.

在"signout button"属性中,从一开始我就将其visible属性声明为false,因此在运行时它将不可见,但是在用户登录时应该可见.

这没有发生.

请帮忙.

在此先感谢

Hi,

In my project, when the user logs in then there should be a visible signout button.
This is not showing, even when I set visible property to true in my code behind.

And in ''signout button'' property, from the start I have declared its visible property to false, so during runtime it won''t visible, but when user logs in it should visible.

This is not happening.

Please help.

Thanks in advance

推荐答案

您如何将可见属性设置为false.从代码隐藏或aspx页面本身开始.

尝试调试您的代码.必须在某个地方再次出现错误.
How did you set the visible property false. from codebehind or from aspx page itself.

Try to debug your code. There must be some place where it was getting again false.


您可以显示该属性是否在页面加载中设置

如果您在页面加载中设置
而不是将其写入

you can show that property will set in page load or not

if you set in page load
than write in that into

if(!ispostback)
{
          //write to visible false or true there

}


这篇关于注销按钮可见属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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