protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BLL.ContactDetails objdata = new BLL.ContactDetails(); objdata.LoadAll(); txtFacebook.Text = objdata.Facebook; txtLocation.Text = objdata.Location; txtMail.Text = objdata.Email; txtTelephone.Text = objdata.Telephone; } }