Hello,
I tried to change the login status control behaviour with no luck,
I think the only solution is to write you own login status control, I did one for you ,
you can accomplish that by adding a new user control and putting the following link buttons iniside it ,
<asp:LinkButton ID="LnkLogin" runat="server" >Login</asp:LinkButton>
<asp:LinkButton ID="lnkLogout" runat="server">Logout</asp:LinkButton>
then in user control code behind, you handle the click events of those linkbuttons as follows:
Protected Sub LnkLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkLogin.Click
Response.Redirect(FormsAuthentication.LoginUrl)
End Sub
Protected Sub lnkLogout_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkLogout.Click
FormsAuthentication.SignOut()
Response.Redirect(FormsAuthentication.LoginUrl)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
LnkLogin.Visible = Not Page.User.Identity.IsAuthenticated
lnkLogout.Visible = Page.User.Identity.IsAuthenticated
End Sub
now , you can replace the login status control with your user control ....
Regards,