This is some method that accept Dictonary.
public void Display(Dictionary<string, string> feeds)
{
for (int i = 0; i < 5; i++)
{
int x = i + 1;
string numberOfLable = "linkLabel" + x;
var l = Controls.Find(numberOfLable, true).First() as LinkLabel;
string text = feeds.ElementAt(i).Key;
l.Text = text;
//TO DO add click event for link label
//that display value from Dictionary
}
}
How to add code that if linkLabel[i] is clicked, in textBox will show value of dictionary?