protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { Social s = new Social(); dropSocial.DataSource = s.GetSocialList(); dropSocial.DataTextField = "Title"; dropSocial.DataValueField = "SocialID"; dropSocial.DataBind(); ListItem l = new ListItem("Select", "0"); dropSocial.Items.Insert(0, l); Model_SiteInfo ms = new Model_SiteInfo(); ms = ms.GetSiteInfo(); if (ms != null) { s_address.Text = ms.Address; s_phone.Text = ms.Phone; s_Email.Text = ms.Email; s_fax.Text = ms.Fax; s_lat.Text = ms.Lat; s_long.Text = ms.Long; lblLogoTop.Value = ms.LogoTopUrl; lblLogoFoot.Value = ms.LogoFootUrl; lblFavIcon.Value = ms.FavIcon; lblBrochure.Value = ms.MainBrochure; s_slocan.Text = ms.Slogan; s_about.Text = ms.FooterAbout; s_googleanlytic.Text = ms.GoogleAnalytic; s_MapScript.Text = ms.MapScript; Model_SiteSocialMap ss = new Model_SiteSocialMap(); dropSocial_ret.DataSource = ss.GetSocialMap(ms.IFID); dropSocial_ret.DataTextField = "Link"; dropSocial_ret.DataValueField = "SocialID"; dropSocial_ret.DataBind(); } } }