-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.aspx.cs
More file actions
23 lines (21 loc) · 739 Bytes
/
about.aspx.cs
File metadata and controls
23 lines (21 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
public partial class Default3 : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["DatabaseConnectionString1"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
SqlDataAdapter adpt = new SqlDataAdapter("SELECT [id], [doctor_name], [speciality], [image], [status] FROM [manage_doctor]", con);
DataTable dt = new DataTable();
adpt.Fill(dt);
Repeater1.DataSource = dt;
Repeater1.DataBind();
}
}