X
xke
I give up after spending some time with this issue.
I have a text, a dropdown and a submit button on my webpage (net
2005).
Type smth in Textbox, pick up a value on drpdwn list and submit.
Textbox shows the typed value but the drpdwn loses the selection ...
actually it's empty.
Values for drpdown list are coming on load if not IsPostBack.
If I fill the drpdwn list like
<asp:dropdownlist id="dd" runat="server">
<asp:ListItem Text="1" value="1"></asp:ListItem>
<asp:ListItem Text="2" value="2"></asp:ListItem>
</asp:dropdownlist>
Then everything is perfect.
I must say I do have a BasePage and the control which contains the
drpdwn is part of a page which inherits BasePage class.
Tha BasePage class overrides CreateChildControls and Render methods.
Why can cause drpdwn to lose its state?
Thousand Thanks,
xkeops
I have a text, a dropdown and a submit button on my webpage (net
2005).
Type smth in Textbox, pick up a value on drpdwn list and submit.
Textbox shows the typed value but the drpdwn loses the selection ...
actually it's empty.
Values for drpdown list are coming on load if not IsPostBack.
If I fill the drpdwn list like
<asp:dropdownlist id="dd" runat="server">
<asp:ListItem Text="1" value="1"></asp:ListItem>
<asp:ListItem Text="2" value="2"></asp:ListItem>
</asp:dropdownlist>
Then everything is perfect.
I must say I do have a BasePage and the control which contains the
drpdwn is part of a page which inherits BasePage class.
Tha BasePage class overrides CreateChildControls and Render methods.
Why can cause drpdwn to lose its state?
Thousand Thanks,
xkeops