/
ContactUs.aspx.cs
30 lines (28 loc) · 970 Bytes
/
ContactUs.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SMOTweb
{
public partial class ContactUs : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BLL.ContactDetails objData = new BLL.ContactDetails();
objData.LoadByPrimaryKey(1);
lblContactLocation.Text = objData.Location;
lblContactPhone.Text = objData.Telephone;
aContactEmail.InnerText = objData.Email;
aContactEmail.HRef = "mailto:" + objData.Email;
BLL.PageContent objPC = new BLL.PageContent();
objPC.LoadByPrimaryKey(1);
litContactUs.Text = objPC.PlaceHolder1;
lblPageTitle.Text = objPC.PageTitle;
}
}
}
}