MultiView:
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:view id=view1" runat ="server">
</view>
<asp:view id=view2" runat ="server">
</view>
</Multiview>
Previous Button:
protected void btnPrev_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex--;
}
Next Button:
protected void btnNext_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex++;
}
protected override void OnPreRender(EventArgs e)
{
btnPrev.Visible = MultiView1.ActiveViewIndex > 0;
btnNext.Visible = MultiView1.ActiveViewIndex < MultiView1.Views.Count - 1;
base.OnPreRender(e);
}
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:view id=view1" runat ="server">
</view>
<asp:view id=view2" runat ="server">
</view>
</Multiview>
Previous Button:
protected void btnPrev_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex--;
}
Next Button:
protected void btnNext_Click(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex++;
}
protected override void OnPreRender(EventArgs e)
{
btnPrev.Visible = MultiView1.ActiveViewIndex > 0;
btnNext.Visible = MultiView1.ActiveViewIndex < MultiView1.Views.Count - 1;
base.OnPreRender(e);
}