-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathabout.aspx.cs
More file actions
36 lines (33 loc) · 915 Bytes
/
about.aspx.cs
File metadata and controls
36 lines (33 loc) · 915 Bytes
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.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class about : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Cnn"].ConnectionString);
public static string aboutDetails = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindListView();
}
}
public void BindListView()
{
con.Open();
SqlCommand cmd = new SqlCommand("select about from WebsiteDetails_Table", con);
aboutDetails = cmd.ExecuteScalar().ToString();
con.Close();
}
}