-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.aspx.cs
64 lines (47 loc) · 1.28 KB
/
status.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using System.Data.SqlClient;
using System.Data;
using System.Security.Cryptography;
using System.Text;
using System.Net;
public partial class status : System.Web.UI.Page
{
Class1 fun = new Class1();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["name"] == null)
{
Response.Redirect("login.aspx");
}
if (!IsPostBack)
{
Label1.Text = "WELCOME : ADMIN " + Session["name"].ToString();
//Response.Write(Session["name"].ToString());
setgrid();
}
}
private void setgrid()
{
DataTable dt = fun.select("select s.statusid,s.hid,s.status,s.date,s.time,s.remark from status as s ");
GridView4.DataSource = dt;
GridView4.DataBind();
}
protected void GridView4_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
}
public void cleardata()
{
}
protected void GridView4_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
}
protected void GridView4_SelectedIndexChanged(object sender, EventArgs e)
{
}
}