/
servicesDisplay.aspx.cs
47 lines (41 loc) · 1.3 KB
/
servicesDisplay.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data.Sql;
using System.Data;
using System.Web.Configuration;
public partial class servicesDisplay : System.Web.UI.Page
{
dbUtils utils;
protected void Page_Load(object sender, EventArgs e)
{
utils = new dbUtils();
}
protected void Button1_Click(object sender, EventArgs e)
{
categoriesView.DataSource = utils.getCategories();
categoriesView.DataBind();
}
protected void Button2_Click(object sender, EventArgs e)
{
serviceView.DataSource = utils.getServices(1);
serviceView.DataBind();
Label1.Text = "Hosting Services";
}
protected void Button3_Click(object sender, EventArgs e)
{
serviceView.DataSource = utils.getServices(2);
serviceView.DataBind();
Label1.Text = "Storage Services";
}
protected void Button4_Click(object sender, EventArgs e)
{
serviceView.DataSource = utils.getServices(3);
serviceView.DataBind();
Label1.Text = "Management Services";
}
}