コード例 #1
0
ファイル: log.aspx.cs プロジェクト: radtek/ClearView
 protected void Page_Load(object sender, EventArgs e)
 {
     Response.Cookies["loginreferrer"].Value   = "/admin/log.aspx";
     Response.Cookies["loginreferrer"].Expires = DateTime.Now.AddDays(30);
     if (Request.Cookies["adminid"] != null && Request.Cookies["adminid"].Value != "")
     {
         intProfile = Int32.Parse(Request.Cookies["adminid"].Value);
     }
     else
     {
         Response.Redirect("/admin/login.aspx");
     }
     intCount = 1;
     oLog     = new NCC.ClearView.Application.Core.Log(intProfile, dsn);
     if (!IsPostBack)
     {
         LoopRepeater();
         btnDelete.Attributes.Add("onclick", "return confirm('Are you sure you want to delete these records?');");
         btnDeleteAll.Attributes.Add("onclick", "return confirm('Are you sure you want to delete ALL of the records?') && confirm('ARE YOU REALLY SURE YOU WANT TO CLEAR THE LOG?!?');");
     }
 }