Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 1st, 2012  |  syntax: None  |  size: 0.92 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. create a web page as 2 parts
  2. <script type="text/javascript">
  3. $('#buttonid').click(function() {
  4.     $('#divid').append("<form><input />etc etc etc</form>");
  5. });
  6. </script>
  7.        
  8. <asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>
  9.         <asp:UpdatePanel id="upnl" runat="server" ChildrenAsTriggers="true">
  10.             <ContentTemplate>
  11.                 <asp:Panel ID="pnl1" runat="server">
  12.                     <!--personal info-->
  13.                     <asp:Button ID="btn1" runat="server" Text="this button could validate personal info, hide pnl1 and show pnl2" />
  14.                 </asp:Panel>
  15.                 <asp:Panel ID="pn2" runat="server" Visible="false">
  16.                     <!--address info-->
  17.                     <asp:Button id="btn2" runat="server" Text="this button could validate address information and finally submit the form." />
  18.                 </asp:Panel>
  19.             </ContentTemplate>
  20.         </asp:UpdatePanel>