Dropdownlist does not load in chain

Asked

Viewed 117 times

2

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

CarregarCombos(ddlX);
CarregarCombos(ddlY);

It is being loaded on the screen only the first, but debugging the two are with values. In short: Via codebehind everything is perfect, but on screen the dropdown does not receive the values.

This happens also when I try to do:

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

Only the first is enabled.

I would like to know why and the solution to this problem.

  • What is the code within the Load method?

  • @Fernandopazoti posts the rest of the code

  • Thank you for your attention, but I ended up solving the problem. Panel was disabled and not working, but when I enabled it, it worked.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.