views:

18

answers:

1

Hello folks,

I have one page with two dropdownlists with different IDs and in my codebehind I have two distinct methods, one for each dropdownlist, with distinct names and handlers.

BUT, in my codebehind, only one dropdownlist calls it's method - and sometimes it calls both methods! - while the other dropdownlist never calls its method.

I tried cleaning the infamous "Temporary ASP.NET Files" folder I tried rebuilding the solution

but the problem persists = (

Do you have any hints ?

A: 

Forgot to set the AutoPostBack="True" on one of the dropdownlists

Result: the second dropdownlist method is only called after a postback is triggered by changing the first dropdownlist value.

Simlpe as that !

Lynx Kepler