<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MultiView.aspx.cs" Inherits="MultiView" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Exemplo com o controle MultiView</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:RadioButton ID="rndFisica" runat="server" GroupName="ExemploMultiView" OnCheckedChanged="rndFisica_CheckedChanged"
            Text="Pessoa Física" Checked="True" AutoPostBack="True" />
        <asp:RadioButton ID="rndJuridica" runat="server" GroupName="ExemploMultiView" OnCheckedChanged="rndFisica_CheckedChanged"
            Text="Pessoa Jurídica" AutoPostBack="True" /><br />
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="1" EnableTheming="False">
            <asp:View ID="View1" runat="server">
                <asp:Label ID="lblEmpresa" runat="server" Text="Empresa:"></asp:Label>
                <asp:TextBox ID="txtEmpresa" runat="server" Width="366px">
                </asp:TextBox><br />
                <asp:Label ID="lblCnpj" runat="server" Text="CNPJ:" Width="56px"></asp:Label>
                <asp:TextBox ID="txtCnpj" runat="server" Width="127px"></asp:TextBox>
                <asp:Label ID="lblEstadual" runat="server" Text="Inscrição Estadual">
                </asp:Label>
                <asp:TextBox ID="txtEstadual" runat="server" Width="115px"></asp:TextBox>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
                <asp:TextBox ID="txtNome" runat="server" Width="329px"></asp:TextBox><br />
                <asp:Label ID="lblCpf" runat="server" Text="CPF:" Width="41px"></asp:Label>
                <asp:TextBox ID="txtCpf" runat="server" Width="144px"></asp:TextBox>
                <asp:Label ID="lblRg" runat="server" Text="RG:"></asp:Label>
                <asp:TextBox ID="txtRg" runat="server" Width="147px"></asp:TextBox>
            </asp:View>
        </asp:MultiView>
    </div>
    </form>
</body>
</html>
