-
index array
There are several buttons in an aspx page. I would like these buttons to have the same name but different indexes so that I can refer to them in a select case vb.net code.
Basically as same as vb6 wher you can name two controls the same but different index array. How is this done in asp.net using vb.net
Thank you
-
You can do it several ways, but you can't name them the same name.
I would just do a select case on the .name property.
So if you have a event that handles all the buttons clicks, then you could cast the sender object to type button, then do a select case on the casted button object's name property.
-
can you send me a simple example please?