Imports BVSoftware.BVC.Core Public Class LoginStatusControl Inherits System.Web.UI.UserControl #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. Private Sub InitializeComponent() End Sub Protected WithEvents lnkStatus As System.Web.UI.WebControls.HyperLink 'NOTE: The following placeholder declaration is required by the Web Form Designer. 'Do not delete or move it. Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If BVC2004Store.IsUserAuthenticated = True Then Me.lnkStatus.Text = Content.SiteTerms.GetTerm("Logout") Me.lnkStatus.NavigateUrl = "~/Logout.aspx" Else Me.lnkStatus.Text = Content.SiteTerms.GetTerm("Login") Me.lnkStatus.NavigateUrl = "~/Login.aspx" End If End Sub End Class