how to get value of all selected checkbox?

  • Creatore Discussione Creatore Discussione frmsasp
  • Data di inizio Data di inizio

frmsasp

Nuovo Utente
3 Set 2005
4
0
0
Hello there,

I am using ASP.NET with C# and facing below problem. I am not able to get values of selected checkboxes which are generated dynamically.
Pls have a look at the image attached with the message...

Waiting for your reply....

Thanks,
Paresh
 

Allegati

  • rights_forum.gif
    rights_forum.gif
    47,9 KB · Visite: 373
put all checkbox into one panel.

After this you can make this:
Codice:
For Each _c In mypanel.Controls
            If TypeOf _c Is CheckBox Then
                _ck = DirectCast(_c, CheckBox)
                If _ck.ClientID.Length = 9 Then
                    i = Right(_ck.ClientID, 1)
                Else
                    i = Right(_ck.ClientID, 2)
                End If
          end if


....
 

Discussioni simili