A
Alex Maghen
I have a UserControl which has only one constituent control, a DropDownList.
I am having what seems to be an IMPOSSIBLE situation: In the Page_Load() of
my ASPX, I am setting
MyCtl1.SomePropery = "A";
MyCtl2.SomePropery = "B";
Inside my control, I pretty much set the DropDownList (DDL.SelectedValue) to
the SomeProperty.
Now here's the crazy thing that's happening:
If I do what I showed above in Page_Load(), BOTH of my controls will have
the same "B" in their respective DropDownLists. Somehow, the property I am
setting for one of these is getting into the settings for the other. And it's
always the control that's LAST in order in the HTML of my ASPX page whose
value copies to those that came before it. How can this be happeneing?
Alex
Somehow, whichever instance of MyCtl came LAST in the HTML of the ASPX file
will
I am having what seems to be an IMPOSSIBLE situation: In the Page_Load() of
my ASPX, I am setting
MyCtl1.SomePropery = "A";
MyCtl2.SomePropery = "B";
Inside my control, I pretty much set the DropDownList (DDL.SelectedValue) to
the SomeProperty.
Now here's the crazy thing that's happening:
If I do what I showed above in Page_Load(), BOTH of my controls will have
the same "B" in their respective DropDownLists. Somehow, the property I am
setting for one of these is getting into the settings for the other. And it's
always the control that's LAST in order in the HTML of my ASPX page whose
value copies to those that came before it. How can this be happeneing?
Alex
Somehow, whichever instance of MyCtl came LAST in the HTML of the ASPX file
will