<%@ Page Language="C#"%>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
MultiView1.ActiveViewIndex = 0;
}
}
void NextView(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex += 1;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>MultiView Server Control</title>
</head>
<body>
<form id="form1" runat="server">
<asp:MultiView ID="MultiView1" Runat="server">
<asp:View ID="View1" Runat="Server">
A<p />
<i>asdf</i><p />
<asp:Button ID="Button1" Runat="Server" Text="Next Step"
OnClick="NextView" />
</asp:View>
<asp:View ID="View2" Runat="Server">
B<p />
<i>sdfg.</i><p />
<asp:Button ID="Button2" Runat="Server" Text="Next Step"
OnClick="NextView" />
</asp:View>
<asp:View ID="View3" Runat="Server">
C<p />
<i>dfgh<br />
</i><p />
</asp:View>
</asp:MultiView>
</form>
</body>
</html>