//insert the comapany details protected void insertCompanyProfile() { Organization org = new Organization(); org = org.getComapnyProfile(email); name.InnerHtml = org.Name; industry.InnerHtml = org.Industry; description.InnerHtml = org.Description; address.InnerHtml = org.Address; phone.InnerHtml = org.PhoneNumber; fbPage.InnerHtml = org.FbWebsite; fbPage.HRef = org.FbWebsite; website.InnerHtml = org.WebSiteUrl; website.HRef = org.WebSiteUrl; }
//insert the company information to the edit from protected void insertCompanyProfileIntoForm() { Organization org = new Organization(); org = org.getComapnyProfile(email); List<Industry> indList = new List<Industry>(); indList.AddRange((new Industry()).GetAllIndustries()); foreach (Industry ind in indList) { formIndustry.Items.Add(ind.Name); if (ind.Name == industry.InnerText) { formIndustry.Items.FindByText(ind.Name).Selected = true; } } formName.Value = org.Name; formDescription.Value = org.Description; formAddress.Value = org.Address; formPhone.Value = org.PhoneNumber; formFbpage.Value = org.FbWebsite; formWebsite.Value = org.WebSiteUrl; }