ASP Net Controls ASP.Net Tutorial

NextView:         activate the next View control.
PrevView:         activate the previous View control.
SwitchViewByID:   activate the view by id.
SwitchViewByIndex:activate the view by index.
<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    protected void View3_Activate(object sender, EventArgs e)
    {
        lblFirstNameResult.Text = txtFirstName.Text;
        lblColorResult.Text = txtColor.Text;
    }



    MultiView Form


    
    

            id="MultiView1"
        ActiveViewIndex="0"
        Runat="server">
        
        

Step 1


                    id="lblFirstName"
            Text="Enter Your First Name:"
            AssociatedControlID="txtFirstName"
            Runat="server" />
        
                    id="txtFirstName"
            Runat="server" />
        
                    id="btnNext"
            Text="Next"
            CommandName="NextView"
            Runat="server" />
        
        
        

Step 2


                    id="Label1"
            Text="Enter Your Favorite Color:"
            AssociatedControlID="txtColor"
            Runat="server" />
        
                    id="txtColor"
            Runat="server" />
        
                    id="Button1"
            Text="Next"
            CommandName="NextView"
            Runat="server" />
        
        
        

Summary


        Your First Name:
                    id="lblFirstNameResult"
            Runat="server" />
        
        Your Favorite Color:
                    id="lblColorResult"
            Runat="server" />