sample code using ASP.NET & C#:
<br />
<br />
<form id="form1" runat="server"><br />
<asp:scriptmanager id="SM1" runat="server" xmlns:asp="#unknown" /><br />
<br />
<asp:updatepanel id="UP1" runat="server" xmlns:asp="#unknown"><br />
<contenttemplate><br />
<br />
<asp:multiview id="MultiView1" runat="server" activeviewindex="0"><br />
<asp:view id="View1" runat="server"><br />
This is View1. Click the button to goto View 2.<br />
</asp:view><br />
<asp:view id="View2" runat="server"><br />
This is View2. Enter your name and click the button to goto View 3.<br /><br />
Name: <asp:textbox id="fld_Name" runat="server" /><br />
</asp:view><br />
<asp:view id="View3" runat="server"><br />
<asp:literal id="lit_Name" runat="server" /> This is View3.<br />
</asp:view><br />
</asp:multiview><br />
<br /><br /><br />
<asp:button id="but_Submit" runat="server" text="Continue" onclick="but_Submit_Click" /><br />
<br />
</contenttemplate><br />
</asp:updatepanel><br />
</form><br />
<br />
<br />
<br />
Button_Click Event:<br />
<br />
<br />
protected void but_Submit_Click(object sender, EventArgs e)<br />
{<br />
if (MultiView1.ActiveViewIndex == 0)<br />
{<br />
MultiView1.SetActiveView(View2);<br />
}<br />
else if (MultiView1.ActiveViewIndex == 1)<br />
{<br />
MultiView1.SetActiveView(View3);<br />
if (String.IsNullOrEmpty(fld_Name.Text))<br />
{<br />
lit_Name.Text = "You did not enter your name. ";<br />
}<br />
else<br />
{<br />
lit_Name.Text = "Hi, " + fld_Name.Text + ". ";<br />
}<br />
}<br />
else if (MultiView1.ActiveViewIndex == 2)<br />
{<br />
MultiView1.SetActiveView(View1);<br />
}<br />
}<br />