Default.aspx.cs

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkit;
using System.Text;

namespace WebApplication2
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            Repeater1.DataSource = "helloworld".ToCharArray();
            Repeater1.DataBind();
        }



        protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
            {
                AutoCompleteExtender ace = e.Item.FindControl("OccAutoCompleteExtender") as AutoCompleteExtender;
                TextBox txt1 = e.Item.FindControl("textbox1") as TextBox;

                HiddenField hf1 = e.Item.FindControl("MyLovelyHiddenField") as HiddenField;

                ace.TargetControlID = txt1.ID;
                string hface = "var hiddenFieldFor" + ace.ClientID + " = '" + hf1.ClientID + "';";
                ClientScript.RegisterClientScriptBlock(this.GetType(), "correspondingfields"+hf1.ClientID, hface, true);
            }
        }
    }
}
(Ignore coding standards )

(Continued next post)