vb.net - Adding Controls dynamically. Asp.Net and VB -
i'm trying add "panel" controls dynamicaly. code below, clicking "add" button, displays "panel" controls(which within table), number of "education" can enter unlimited. know how capture data, can't figure out how implement/code this,can please give me pointers same?
should reading ajax? don't know ajax..
<asp:panel id="panel1" runat="server"> <table> <tr> <td><asp:textbox id="colluniv_name" runat="server"></asp:textbox></td> <td><asp:textbox id="colluniv_location" runat="server"></asp:textbox></td> </tr> <tr> <td><asp:textbox id="startdatetext" runat="server"></asp:textbox></td> <td><asp:textbox id="enddatetext" runat="server"></asp:textbox></td> </tr> </table>
seems more naturally handled repeating control. along lines of listview control.
there's full example in msdn page linked won't repeat here. 2 parts you'll want take @ bit more closely itemtemplate
lets define normal items , insertitemtemplate
lets specify insert row like. can specify if inserttemplate appears @ top or bottom. in code-behind you'll subscribe iteminserting , handle user input there.
Comments
Post a Comment