Guest User

Untitled

a guest
Jun 1st, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment