-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewUserList.aspx.cs
More file actions
51 lines (39 loc) · 1.22 KB
/
Copy pathViewUserList.aspx.cs
File metadata and controls
51 lines (39 loc) · 1.22 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EADPProject.BLL;
namespace EADPProject
{
public partial class ViewUserList : System.Web.UI.Page
{
List<Smile> sList;
protected void Page_Load(object sender, EventArgs e)
{
RefreshGridView();
}
private void RefreshGridView()
{
Smile smile = new Smile();
sList = smile.GetAllSmile();
GvSmile.Visible = true;
GvSmile.DataSource = sList;
GvSmile.DataBind();
}
protected void GvSmile_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GvSmile.SelectedRow;
Session["SSId"] = row.Cells[0].Text;
Session["SSFName"] = row.Cells[1].Text;
Session["SSLName"] = row.Cells[2].Text;
Session["SSEmail"] = row.Cells[3].Text;
Session["SSType"] = row.Cells[4].Text;
Response.Redirect("ViewUser.aspx");
}
protected void ButtonSearch_Click(object sender, EventArgs e)
{
}
}
}