protected void Page_Load(Object Src, EventArgs E) { if (!IsPostBack) {
ArrayList stuff = new ArrayList(); stuff.Add(new ListItem("Hey", "<b>asdasdf</b>")); stuff.Add(new ListItem("Yo", "<i>italic</i>"));
FtbRepeater1.DataSource = stuff; FtbRepeater1.DataBind();
} }
protected void SaveButton_Click(object sender, EventArgs E) { Output.Text = ""; foreach (RepeaterItem repeaterItem in FtbRepeater1.Items) { FreeTextBox FreeTextBox1 = repeaterItem.FindControl("FreeTextBox1") as FreeTextBox; Output.Text += FreeTextBox1.Text + "<hr />"; } }
|