I'm trying to remove words from a label until it's under the specified allowed width. How ever while I'm looping over the repeaters items, the Width = 0 and the Text property is allways empty.I've tried moving my code to OnItemDataBound\[code\]private void loadData(){ Activities activities = new Activities(); var acts = activities.getNextActivities(3); if (acts.Count > 0) { rptActivities.DataSource = acts; rptActivities.DataBind(); foreach (RepeaterItem item in rptActivities.Items) { Label lblActName = (Label)item.FindControl("lblActName"); Unit width = lblActName.Width; while (width.Value > 310) { int pos = lblActName.Text.LastIndexOf(" ") < 0 ? 0 : lblActName.Text.LastIndexOf(" "); lblActName.Text = lblActName.Text.Substring(0, pos); width = lblActName.Width; } } } else { pnlItems.Visible = false; pnlNoItems.Visible = true; }}\[/code\]