Private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if(IsPostBack)
{
}
else
{
MyHashTable=new Hashtable(2);
MyHashTable.Add("Hello",1);
MyHashTable.Add("Bye",2);
this.Repeater1.DataSource=MyHashTable;
this.Repeater1.DataBind();
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
System.Web.UI.WebControls.Label MyLabel=new Label();
MyLabel=(System.Web.UI.WebControls.Label)this.Repeater1.Items[0].FindControl("Label1");
string mmmm=MyLabel.Text.ToString().TrimEnd();
int x=0;
}