F
flyingAway
Hi,
in a for-next loop i create some ImageButtons in runtime.
How to get the controls after I clicked one of these Buttons?
I tried it with
ctrlCurrImgBtn =
(ImageButton)Convert.ChangeType(FindControl(CurrID),typeof(ImageButton));
but I get a System.NullReferenceException.
I tried to create the Controls once more but I get an Exeption because
there are more than one Control with the same ID.
Some Ideas?
Thank's
in a for-next loop i create some ImageButtons in runtime.
How to get the controls after I clicked one of these Buttons?
I tried it with
ctrlCurrImgBtn =
(ImageButton)Convert.ChangeType(FindControl(CurrID),typeof(ImageButton));
but I get a System.NullReferenceException.
I tried to create the Controls once more but I get an Exeption because
there are more than one Control with the same ID.
Some Ideas?
Thank's