protected void Page_Load(object sender, EventArgs e) { Tour_Guide tg = new Tour_Guide(Session["username"].ToString()); tg.setInfo(); tourID.Text = Session["tourID"].ToString(); String reader = tg.getTourInfoForUpdate(Session["tourID"].ToString()); String[] readerArr = reader.Split(';'); Array.Resize(ref readerArr, readerArr.Length - 1); var startDate = Convert.ToDateTime(readerArr[0].ToString()).Date; //tourStartDate.Text = startDate.ToString("dd/MM/yyyy"); var endDate = Convert.ToDateTime(readerArr[1].ToString()).Date; tourStartDate.Attributes.Add("placeholder", startDate.ToString("dd/MM/yyyy")); tourEndDate.Attributes.Add("placeholder", endDate.ToString("dd/MM/yyyy")); tourStatus.Attributes.Add("placeholder", readerArr[2]); tourName.Attributes.Add("placeholder", readerArr[3]); tourDesc.Attributes.Add("placeholder", readerArr[4]); tourPrice.Attributes.Add("placeholder", readerArr[5]); tourCat.Attributes.Add("placeholder", readerArr[6]); tourCityCountry.Attributes.Add("placeholder", readerArr[7]); }