Showing input forms and thank you pages with multiview

April 15, 2006

The MultiView replaces showing and hiding div tags. Load the input form. When the user clicks submit (and the data is validated, not shown here), change the view to the confirmation pane.

‹asp:MultiView ID=”MultiView1″ runat=”server” ActiveViewIndex=”0″›
‹asp:View ID=”View1″ runat=”server” ›
‹table›
‹tr›‹td›Name‹/td›‹/tr›
‹tr›‹td›
‹asp:Button ID=”save” runat=”server” OnClick=”save_Click” /›
‹/td›‹/tr›
‹/table›
‹/asp:View›
‹asp:View ID=”View2″ runat=”server”›
‹table›
‹tr›‹td›received‹/td›‹/tr›
‹/table›

‹/asp:View›
‹/asp:MultiView›

Previous post:

Next post: