Wizard by IE Controls Multipage (VB.net) : Wizard « Components « ASP.Net






Wizard by IE Controls Multipage (VB.net)

<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="IEControls" 
    Namespace="Microsoft.Web.UI.WebControls" 
    Assembly ="Microsoft.Web.UI.WebControls"
%>
<script runat=server>
Sub Prev1_Click(Sender As Object, E As EventArgs)
    MyMultiPage.SelectedIndex = 2
End Sub
Sub Next1_Click(Sender As Object, E As EventArgs)
    MyMultiPage.SelectedIndex = 1
End Sub
Sub Prev2_Click(Sender As Object, E As EventArgs)
    MyMultiPage.SelectedIndex = 0
End Sub
Sub Next2_Click(Sender As Object, E As EventArgs)
    MyMultiPage.SelectedIndex = 2
End Sub
Sub Prev3_Click(Sender As Object, E As EventArgs)
    MyMultiPage.SelectedIndex = 1
End Sub
Sub Next3_Click(Sender As Object, E As EventArgs)
    MyMultiPage.SelectedIndex = 0
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Using the MultiPage Control as an Interface for a Wizard</TITLE>
</HEAD>
<BODY LEFTMARGIN="40">
<form runat="server">
<IEControls:multipage 
    id="MyMultiPage"
    runat="server"
    selectedindex=0
    >
    <IEControls:PageView
        id="pv1"
        runat=server
        font-name="Arial"
        font-bold=True
        forecolor="yellow"
        backcolor="darkred"
    >
        Enter your name:<BR>
        <asp:textbox 
        id="txtName" 
        runat=server 
        />    
        <BR>
        <asp:button 
        id="butPrev1"
        text="Previous"
        onclick="Prev1_Click" 
        runat="server"
        />
        <asp:button 
        id="butNext1"
        text="Next"
        onclick="Next1_Click" 
        runat="server"
        />
    </IEControls:PageView>    
    <IEControls:PageView
        id="pv2"
        runat=server
        font-name="Arial"
        font-bold=True
        forecolor="darkred"
        backcolor="yellow"
    >
        Enter your email address:<BR>
        <asp:textbox 
        id="txtEmail" 
        runat=server 
        />    
        <BR>
        <asp:button 
        id="butPrev2"
        text="Previous"
        onclick="Prev2_Click" 
        runat="server"
        />
        <asp:button 
        id="butNext2"
        text="Next"
        onclick="Next2_Click" 
        runat="server"
        />
    </IEControls:PageView>    
    <IEControls:PageView
        id="pv3"
        runat=server
        font-name="Arial"
        font-bold=True
        forecolor="darkblue"
        backcolor="green"
    >
        Enter your password:<BR>
        <asp:textbox 
        id="txtPassword" 
        runat=server 
        />    
        <BR>
        <asp:button 
        id="butPrev3"
        text="Previous"
        onclick="Prev3_Click" 
        runat="server"
        />
        <asp:button 
        id="butNext3"
        text="Next"
        onclick="Next3_Click" 
        runat="server"
        />
    </IEControls:PageView>    
</IEControls:multipage>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.asp:Wizard Demo (C#)
2.Wizard: Using Panel Controls to Control Code Flow (VB.net)
3.Wizard Demo (VB.net)