PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/themes/Indigo/site.master.cs

#
C# | 22 lines | 20 code | 2 blank | 0 comment | 0 complexity | c422f33eaf9bd0ffe21e0cd8fdf63d84 MD5 | raw file
 1using System;
 2using System.Data;
 3using System.Configuration;
 4using System.Collections;
 5using System.Web;
 6using System.Web.Security;
 7using System.Web.UI;
 8using System.Web.UI.WebControls;
 9using System.Web.UI.WebControls.WebParts;
10using System.Web.UI.HtmlControls;
11using BlogEngine.Core;
12
13
14public partial class IndigoSite : System.Web.UI.MasterPage
15{
16    protected void Page_Load(object sender, EventArgs e)
17    {
18        bool isAuthenticated = Security.IsAuthenticated;
19        hypLoginStatus.Text = isAuthenticated ? "Sign Out" : "Sign In";
20        hypLoginStatus.NavigateUrl = string.Format("{0}Account/login.aspx{1}", Utils.RelativeWebRoot, isAuthenticated ? "?logoff" : string.Empty);
21    }
22}