forked from sachatrauwaen/OpenUrlRewriter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUrlLog_View.ascx.cs
47 lines (42 loc) · 1.27 KB
/
UrlLog_View.ascx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Satrabel.HttpModules.Config;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Security;
using Satrabel.Services.Log.UrlLog;
namespace Satrabel.Modules.OpenUrlRewriter
{
public partial class UrlLog_View : PortalModuleBase
{
protected void Page_Load(object sender, EventArgs e)
{
ShowCache();
}
private void ShowCache()
{
var Logs = UrlLogController.GetUrlLog(PortalId, DateTime.Now.AddDays(-30), DateTime.Now);
gvLogs.DataSource = Logs;
gvLogs.DataBind();
if (gvLogs.HeaderRow != null)
gvLogs.HeaderRow.TableSection = TableRowSection.TableHeader;
}
protected void ClearCache_Click(object sender, EventArgs e)
{
//DataCache.RemoveCache("UrlRuleConfig");
DataCache.ClearCache();
ShowCache();
}
}
}