PageRenderTime 61ms CodeModel.GetById 58ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/managers/Tickets.aspx.cs

http://github.com/gmhawash/SSR
C# | 20 lines | 17 code | 3 blank | 0 comment | 2 complexity | 4e07384274d8bfe49fdda47105155e01 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Web;
 5using System.Web.UI;
 6using System.Web.UI.WebControls;
 7using System.Web.Security;
 8
 9public partial class managers_Default2 : ZaytonaClasses.ZPage
10{
11  
12  protected void Page_Load(object sender, EventArgs e)
13    {
14      MembershipUser mu = Membership.GetUser();
15      if (mu == null)
16        Server.Execute("~/Login.aspx");
17
18      Session.Add("UserId", Membership.GetUser().ProviderUserKey);
19    }
20}