Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have got two DropDownLists, and I want to change if I change in first Drop down list Values then I want to change in secound DropdownList. My first DropDownList has got a code:

 SPUserCollection userzyWszyscy2 = witryna.SiteUsers;

        // Listowanie userów alfabetyczne

        var listUsers = from SPUser u in userzyWszyscy2
                        orderby u.LoginName
                        select new ListItem(u.LoginName.ToLower());

        DropDownList1.Items.AddRange(listUsers.ToArray());

And secound:

  SPUserCollection userzyWszyscy2 = witryna.SiteUsers;

                // Listowanie userów alfabetyczne

                var listUsers2 = from SPUser u in userzyWszyscy
                                 orderby u.LoginName
                                 select new ListItem(u.LoginName.ToLower());

                DropDownList3.Items.AddRange(listUsers2.ToArray());

How Could I corelate them toogether?

If I change in One I will change in Two.

share|improve this question
1  
Can you please explain what you're trying to do a little better? Are you trying to add the same values to both? or is it more if the first dropdown list changes, you want to reflect the available items on the other? –  Quinn Johns Dec 21 '12 at 16:09
    
Yes I want to add the some Values to both and when first dropdown will change, the secaund DropDownListwill change too. –  Grzegorz Z Dec 21 '12 at 22:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.