简体   繁体   English

在不使用Asp登录控件的情况下,将CSS3菜单的“登录”按钮更改为“在Asp.Net中注销”

[英]Change CSS3 menu Log in button to Logout in Asp.Net without using Asp login controls

I have made CSS3 menu styled in master page and also a login form in master page, both which I have used are not Asp controls and I don't want to use ASP controls. 我已经在母版页中设置了CSS3菜单样式,并在母版页中设置了登录表单,这两个我都不使用Asp控件,也不想使用ASP控件。 The log in panel is managed in ajax control "Modal Pop up extender" which pops up when I press the log in "Link Button" 登录面板在ajax控件“模式弹出扩展器”中管理,当我在“链接按钮”中按登录时会弹出该控件

I am unable to change the "Log in" text to "Logout" when the user registers or login to my web page. 当用户注册或登录到我的网页时,我无法将“登录”文本更改为“注销”。

Can't you create 2 buttons, a Login and a Logout button? 您不能创建2个按钮,即“ 登录”和“ 注销”按钮吗? Then display the correct button after checking the status of the logged in user in codebehind and push this through to a javascript method which handles the visibility of the buttons? 然后,在代码隐藏中检查已登录用户的状态之后,显示正确的按钮,并将其推入处理按钮可见性的javascript方法中?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM