Results 1 to 3 of 3

Thread: index array

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    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

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678
    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
  •  



Click Here to Expand Forum to Full Width