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

# · C# · 22 lines · 20 code · 2 blank · 0 comment · 0 complexity · c422f33eaf9bd0ffe21e0cd8fdf63d84 MD5 · raw file

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