-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathEditTimetable.aspx.cs
36 lines (31 loc) · 963 Bytes
/
EditTimetable.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
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class EditTimetable : System.Web.UI.Page
{
string constring = "Data Source=.;Initial Catalog=Client;Integrated Security=True";
protected void Page_Load(object sender, EventArgs e)
{
using (SqlConnection Sqlcon = new SqlConnection(constring))
{
string query = "select *from Product";
Sqlcon.Open();
SqlDataAdapter sqlData = new SqlDataAdapter(query, Sqlcon);
DataTable dataTable = new DataTable();
sqlData.Fill(dataTable);
GridView1.DataSource = dataTable;
GridView1.DataBind();
}
}
protected void EditTime_Click(object sender, EventArgs e)
{
}
protected void AddRou_Click(object sender, EventArgs e)
{
}
}