-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.aspx.cs
More file actions
53 lines (49 loc) · 1.39 KB
/
MainPage.aspx.cs
File metadata and controls
53 lines (49 loc) · 1.39 KB
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
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class MainPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DisplayBoardList();
DisplayBoardList1();
}
private void DisplayBoardList()
{
grvfree.DataSource = (new ProjectFDao()).GetBoardList();
grvfree.DataBind();
}
private void DisplayBoardList(int iPage)
{
grvfree.DataSource = (new ProjectFDao()).GetBoardList();
grvfree.PageIndex = iPage;
grvfree.DataBind();
}
protected void grvfree_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grvfree.PageIndex = e.NewPageIndex;
grvfree.DataBind();
}
private void DisplayBoardList1()
{
grvclient.DataSource = (new ProjectCDao()).GetBoardList();
grvclient.DataBind();
}
private void DisplayBoardList1(int iPage)
{
grvclient.DataSource = (new ProjectCDao()).GetBoardList();
grvclient.PageIndex = iPage;
grvclient.DataBind();
}
protected void grvclient_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grvclient.PageIndex = e.NewPageIndex;
grvclient.DataBind();
}
protected void grvfree_SelectedIndexChanged(object sender, EventArgs e)
{
}
}