Hi All,

I am creating a set of controls dynamically from a database. The controls comprise of a panel (container) an image, a link button and a label. This all works great. I have also per link button control added a handle:-

Code:
AddHandler MinLnk.Click, AddressOf MinLnk_Click
This is being created for each of the link buttons created so that they all call the same MinLnk_Click event.

As I create the controls I also store in an array a unique code for each MinLink control which is then used to show the new page when the link button is clicked on.

My problem is I need to identify which linked button is being pressed so I can us the correct code. They all call the same MinLnk_Click event and I can't make them call a different one because this would be variable not static.

So in brief I can create one or ten link buttons depending on what is in the database. I store per button a article code in a array. I create a click handle which calls MinLnk_Click for each of the controls. I need to identify which button is being clicked so I can use the correct article code when it reloads the default page.

I used master page and content page and session parameters to get the correct article.

Thanks for any help,

Jiggy!