-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bulliten.aspx.cs
49 lines (44 loc) · 1.1 KB
/
Bulliten.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class Bulliten : System.Web.UI.Page
{
clsbulletin Bullet = new clsbulletin();
DataTable objdt = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (Convert.ToString(Session["ISLogin"]) != "Yes")
{
Response.Redirect("index.aspx?login=no");
}
FillGrid();
}
private void FillGrid()
{
try
{
objdt = new DataTable();
Bullet = new clsbulletin();
Bullet.Action = "Grid";
objdt = Bullet.GetBullettin();
if (objdt.Rows.Count > 0)
{
GVBulliten.DataSource = objdt;
GVBulliten.DataBind();
}
else
{
GVBulliten.DataSource = null;
GVBulliten.DataBind();
}
}
catch (Exception ex)
{
throw ex;
}
}
}