G
Guest
Hi, I have a PlaceHolder on a place, to which I add a DropDownList (using
myPlaceHolder.Controls.Add(ddl). The user selects something from the
DropDownList and posts the page.
Now I try to get the value of what the user selected but the PlaceHolder's
Controls collection is empty. I've tried turning viewstate of the PlaceHolder
on and off but it doesn't make a difference (and I think I should be able to
leave it off).
What could be causing the PlaceHolder's controls to disappear? Shouldn't
they be carried with the form post?
Thanks.
myPlaceHolder.Controls.Add(ddl). The user selects something from the
DropDownList and posts the page.
Now I try to get the value of what the user selected but the PlaceHolder's
Controls collection is empty. I've tried turning viewstate of the PlaceHolder
on and off but it doesn't make a difference (and I think I should be able to
leave it off).
What could be causing the PlaceHolder's controls to disappear? Shouldn't
they be carried with the form post?
Thanks.