Advertisement

05.06.2008 at 07:29PM PDT, ID: 23381505
[x]
Attachment Details

Values wont bind to a dropdown list

Asked by Farzadw in Microsoft Visual Basic.Net

Tags: VB.Net

I'm trying to bind a Dictionaty(of String, String) to my dropdownlist. I see the values there as it loops but i dont see the values in the dropdown. This is what i have:

I put the bind inside the loop as well but didnt make a diff....Start Free Trial
1:
2:
3:
4:
5:
6:
7:
For Each kvp As KeyValuePair(Of String, String) In accountStatusDDL
 
            statusDDL.DataTextField = kvp.Key.ToString
            statusDDL.DataValueField = kvp.Value.ToString
 
        Next
        statusDDL.DataBind()
[+][-]05.06.2008 at 08:34PM PDT, ID: 21513025

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: VB.Net
Sign Up Now!
Solution Provided By: funwithdotnet
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.06.2008 at 08:35PM PDT, ID: 21513026

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.06.2008 at 08:37PM PDT, ID: 21513033

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 04:13AM PDT, ID: 21515090

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628