Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Selected Item in List Box
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00912266
Message ID:
00912280
Vues:
9
Danny,

Thanks. We actually just figured it out. We weren't checking the postback status before calling the databinding commands. That solved the problem.

Thanks again,

David

>David,
>
>Below is a example using the VB.net syntax. Let me know if you need it in C# and I'll be more than glad to...
>
>
>        ' Variables
>        Dim sVar$
>
>        ' Test for no selection
>        If UsersList.SelectedIndex = -1 Then
>            sVar = UsersList.Items(0).Value
>        Else
>            sVar = UsersList.SelectedItem.Value
>        End If
>
>
>Hope that helps...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform