|
-
Apr 30th, 2003, 04:15 PM
#1
Thread Starter
Fanatic Member
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
-
Apr 30th, 2003, 04:44 PM
#2
PowerPoster
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.
-
Apr 30th, 2003, 04:46 PM
#3
Thread Starter
Fanatic Member
can you send me a simple example please?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|