D
Dejan Vesic
Hello.
I created custom control, based on standard DropDownList control.
It is simple extension of the control, with couple of methods added.
My page has two instances of control, let`s say UserDDL1 and
UserDDL2
Now, when page is drawn for the first time, everything works as
expected. But, if I try something like this in PostBack:
UserDDL1.SelectedIndex = 5;
UserDDL2.SelectedIndex = 8;
BOTH controls keep last assigment for .SelectedIndex !!! (8) as if
those controls are reference to the same object instance!
I could not find any problems on code side (C#) or in ASPX page.
Any advice or idea?
Regards,
Dejan Vesic
Platform: VS 2003, .Net Framework 1.1
I created custom control, based on standard DropDownList control.
It is simple extension of the control, with couple of methods added.
My page has two instances of control, let`s say UserDDL1 and
UserDDL2
Now, when page is drawn for the first time, everything works as
expected. But, if I try something like this in PostBack:
UserDDL1.SelectedIndex = 5;
UserDDL2.SelectedIndex = 8;
BOTH controls keep last assigment for .SelectedIndex !!! (8) as if
those controls are reference to the same object instance!
I could not find any problems on code side (C#) or in ASPX page.
Any advice or idea?
Regards,
Dejan Vesic
Platform: VS 2003, .Net Framework 1.1