IEControl: multipage test (C#)
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ Page language="c#" src="MultiPageTest.aspx.cs" AutoEventWireup="false" Inherits="MultiPageTest" %>
<HTML>
<body>
<form id="Form1" method="post" runat="server">
<P>
<iewc:MultiPage id="MultiPage1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 36px" runat="server" Width="301px" Height="272px" BorderStyle="Outset" BorderWidth="1px">
<iewc:PageView id="page1">
<br>
<h3> This is Page 1</h3>
</iewc:PageView>
<iewc:PageView id="page2">
<br>
<h3> This is Page 2</h3>
</iewc:PageView>
<iewc:PageView id="page3">
<br>
<h3> This is Page 3</h3>
</iewc:PageView>
</iewc:MultiPage></P>
<P>
<iewc:TabStrip id="TabStrip1" runat="server" TargetID="MultiPage1" Width="300px">
<iewc:Tab Text="Tab 1"></iewc:Tab>
<iewc:Tab Text="Tab 2"></iewc:Tab>
<iewc:Tab Text="Tab 3"></iewc:Tab>
</iewc:TabStrip></P>
<P>
</P>
</form>
</body>
</HTML>
<%--
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
public class MultiPageTest : System.Web.UI.Page
{
protected Microsoft.Web.UI.WebControls.MultiPage MultiPage1;
protected Microsoft.Web.UI.WebControls.TabStrip TabStrip1;
private void Page_Load(object sender, System.EventArgs e)
{
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
--%>
Related examples in the same category