DropDownList does not load string [closed]

2

I have a method in which loads some dropdowns and gets the name of dropdown as its parameter. The method is working perfectly, because when I "debug" the application I see that dropdown received the items. The problem is that when I put the call in Page_Load of the application more than once:

CarregarCombos(ddlX);
CarregarCombos(ddlY);

Only the first one is loaded on the screen, but debugging the two is with values. In short: Via codebehind is all perfect, however on screen dropdown does not receive values.

This also happens when I try to do:

ddlX.Enabled = true;
ddlY.Enabled = true;

Only the first one is enabled.

I would like to know the reason and solution for this problem.

    
asked by anonymous 03.08.2014 / 21:20

0 answers