I have a custom server control that the markup looks like such:
<myLib:MyControl id="myid" runat="server">
<controls>
<asp:Textbox id="TxtTest" runat="server" />
<asp:Button id="cmdTest" runat="server" />
</controls>
</myLib:MyControl>
the controls property looks like this:
[PersistenceMode(PersistenceMode.InnerProperty)]
public List<Control> controls { get; set; }
For reasons I don't fully understand, if I fire a postback by clicking cmdTest, the value of txtTest is wiped out in the event handler for the button click. Does anybody have any ideas on where this could be happening? Thanks