如何将标签可见性设置为false? [英] How to set the label visibility as false ?

查看:226
本文介绍了如何将标签可见性设置为false?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个登录页面.

当我输入无效的登录ID和密码,然后单击登录按钮时,将显示显示无效登录的标签.
那么在重新输入用户ID和密码时,在哪种情况下我必须将标签可见性设置为false?

I have a login page.

When I enter an invalid login id and password, and then click the login button, the label showing invalid login is displayed.
Then in which event I have to set the label visibility as false when I reenter the userid and password?

推荐答案

它是myLabel.Visible = false,例如 http://forums.asp.net/t/1248982.aspx/1 [ ^ ].

—SA
It''s myLabel.Visible = false, see, for example http://forums.asp.net/t/1248982.aspx/1[^].

—SA


在用户名"和密码"字段的按键事件中,可以将标签的显示设置为无",而在按下按钮时,可以将其显示设置为"
On keypress event of the Userid and Password field you can set display of the label to none and on the button press you can set its display to be visible.


在设计中仅将lable.visible属性设置为false,并在登录按钮中单击事件(如果使用有效的用户名密码),然后使标签可见
in the design only make the lable.visible property as false and in the login button click event if in valid username password then make the label visible


这篇关于如何将标签可见性设置为false?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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