I am adding few LinkLabels dynamically during runtime. I have the IDs of all link labels added to the form. How can I show an error message when a particular linklabel is clicked?
For exmaple. Consider 5 Link labels as show below
- Report 1
- Report 2
- Report 3
- Report 4
- Report 5
When LinkLable "Report 1" is clicked. I have to show a Message box which says "Report 1"
Note: I dont know how many link labels will be generated durig runtime.