-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitemap.aspx.cs
48 lines (35 loc) · 988 Bytes
/
sitemap.aspx.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
48
using System;
using System.Web;
using System.Web.UI.WebControls;
using System.Collections.Generic;
using Model;
using BLL;
namespace Avalon.Web {
public partial class _sitmap : System.Web.UI.Page¡¡
{
private IList<ClipIndexInfo> clips;
private IList<ArchiveIndexInfo> archives;
private int _year;
private int _month;
private int _day;
private int _page;
private string _keyword;
private DateTime _begin;
private DateTime now;
¡¡¡¡protected void Page_Load(object sender, EventArgs e)¡¡
{
Clip clip = new Clip();
clips = clip.GetDays(_year, _month, _day, _page, _keyword, 1, 9999, _begin, 1);
archives = clip.GetArchives();
if (clips != null)
{
clipList.DataSource = clips;
clipList.DataBind();
}
if (archives != null) {
monthList.DataSource = archives;
monthList.DataBind();
}
}
}
}