c# - Dynamically added TextBoxes empty on button click -
i'm adding textboxes dynamically , when click submit button , have postback, can't see values entered textboxes, coming emtpy. here's .aspx page...\ form id="form1" runat="server"> <asp:placeholder id="phformcontent" runat="server"> </asp:placeholder> <br /><br /> <asp:button id="btnaddform" runat="server" text="add form" onclick="btnaddform_click" /> <asp:button id="btnsubmitforms" runat="server" text="submit forms" onclick="btnsubmit_click" /> </form> ...here's how add textboxes form on clicking btnaddform... protected void btnaddform_click(object sender, eventargs e) { // create labels label lblname = new label(); lblname.text = "name:"; label lblnumber = new label(); lblnum