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)Co nvert.ChangeTyp e(FindControl(C urrID),typeof(I mageButton));
but I get a System.NullRefe renceException.
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)Co nvert.ChangeTyp e(FindControl(C urrID),typeof(I mageButton));
but I get a System.NullRefe renceException.
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
Comment