how to get value of all selected checkbox?

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: 297

SuperNandone

Utente Attivo
20 Giu 2005
63
0
0
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
Autore Titolo Forum Risposte Data
P DropDownList e selected value PHP 2
R valore value di un id da passare in chiamata ajax Ajax 3
P Passare contenuto in value. Ajax 1
M Inserire variabile nella value di una hidden PHP 3
V Option value ridenominato jQuery 1
L Bootstrap 4 input ext value HTML e CSS 1
P [MySQL] Type Decimal - Default Value MySQL 0
D Come salvare scelta della select "dinamica" ajax-php? Come dato php o attributo value tag option? Ajax 5
T Ottenere value slection jQuery 1
Trapano [PHP] Campi "Value" "select" PHP 20
filomeni Variabile recuperata nel value Javascript 1
felino [VBScript] Json: catturare un Value dato il suo Nome Visual Basic 1
felino [VBScript] XML Prendere il Value di un childnode attravervo il nome del nodo Visual Basic 0
JackIlPazzo Scraping contenuto menu e relativi data-value? PHP 19
J Errore the value cannot be null or empty ASP.NET 1
otto9due Funzione cambia attributo input value non funziona.. Un aiutino :D Javascript 14
F aggiungere valore option value jQuery 1
F Nascondere option value Javascript 2
L ITSM-9000 the bundle identifier cannot be changed from the current value Sviluppo app per iOS 0
F value di un input text PHP 4
andrea.peo PHP forzare option value di elenco select database Mysql PHP 2
F leggere option value di un form PHP 4
neo996sps Non recupero il value in un select popolato da DB PHP 4
L Problema di invio "value" PHP 1
L Cambiare Value Javascript 4
L riempire l'input file con value? PHP 3
K Assigning the return value of new by reference is deprecated [esyndicat] PHP 1
ivarello Inserire <output> nel Value dell'Input HTML e CSS 0
C Gestire con un elemento DOM il value di un input text Javascript 11
L inviare a database sia valore di value che valore di altro attributo PHP 5
A Inviare Valore di Option diverso dal "value" PHP 14
I problema con cambiamento automatico di value in un input type text Javascript 1
T A non well formed numeric value encountered PHP 8
B Metodo POST prelevare VALUE da tasto SUBMIT PHP 2
S Menù a tendina con "option value" variabili PHP 5
WpStyle validare attributo "value" HTML e CSS 7
M select non deve restituire value Javascript 1
minatore il value PHP 6
L Column count doesn't match value ..... Classic ASP 2
B problema con document.form3.<nome_campo>.value Javascript 1
P Value di un hidden su history.back Javascript 1
F <option value> da campo PHP ? PHP 1
C No database selected Web Server 0
E Mettere come Selected l'opzione di un select option, tramite il dato di una query. Javascript 2
D get the selected text in JavaScript Javascript 9
L Problema option SELECTED PHP 4
Silen select che non rimane selected PHP 3
G Input checkbox in CSS HTML e CSS 0
G Invio di più valori con la stessa checkbox PHP 4
G form invio multiplo con checkbox PHP 12

Discussioni simili