protected void Page_Load(object sender, EventArgs e) { try { CustomerNum = util.GetCustomerNum(Message); if (CustomerNum == 0) { return; } List <Providerm> providermList = Providerms.GetProviderms(CustomerNum); //the elements inthe drop down are padded left and right so that they are centered. for (int i = 0; i < providermList.Count; i++) { string abbr = providermList[i].Abbr; int PadLength = 14 - abbr.Length / 2; providermList[i].Abbr = abbr.PadLeft(PadLength, ' ').PadRight(PadLength, ' ').Replace(" ", " "); } Repeater1.DataSource = providermList; Repeater1.DataBind(); } catch (Exception ex) { LabelError.Text = Util.ErrorMessage; Logger.LogError(ex); } }