如何从login.aspx登录并再次为该注销提供链接时,如何在主页面中将linkbutton登录更改为logout? [英] How to change linkbutton login to logout in master page when loggedin from login.aspx and giving a link again to that logout ?
本文介绍了如何从login.aspx登录并再次为该注销提供链接时,如何在主页面中将linkbutton登录更改为logout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我创建了一个母版页并将其链接到所有页面,例如login.aspx和registration.aspx,
但是当我点击login.aspx中的登录按钮时,它会通过身份验证重定向到其他页面但是主页中的登录链接是相同的....所以请帮我改变退出并给它一个链接。
注意:登录链接按钮在主页面中,我需要在登录成功时更改该注销。
请帮助我,
谢谢
Hi i have created a master page and linked it for all pages like login.aspx and registration.aspx,
but when i click login button in login.aspx it is redirecting to otherpage with authentication but the login link in masterpage is same.... so please help me to change that logout and give a link to it.
Note: login link button is in master page, i need to change that lo logout when login is success full.
Please help me,
Thankyou
推荐答案
使用 LoginStatus [ ^ ]或登录视图 [ ^ ]控制。
有关内置登录控件的更多信息,请访问MSDN:
http://msdn.microsoft.com/en-us/library/ms178329%28v=vs。 110%29.aspx [ ^ ]
Use a LoginStatus[^] or LoginView[^] control.
More information on the built-in login controls is available on MSDN:
http://msdn.microsoft.com/en-us/library/ms178329%28v=vs.110%29.aspx[^]
这篇关于如何从login.aspx登录并再次为该注销提供链接时,如何在主页面中将linkbutton登录更改为logout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文