PAGEVIEW Element | PageView Class

Adds a PAGEVIEW element to a ASP.NET Web Form.

Syntax

ASP <tagPrefix:PAGEVIEW ... >

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.

Remarks

The PAGEVIEW views are declared within the MULTIPAGE tags.

The content of server control can be included declaratively between the PAGEVIEW tags.

When used in conjunction with the TabStrip and MultiPage controls, the PageView views are linked to the Tabs of the TabStrip in the order of appearance if the TabStrip's TargetID attribute is set to the ID of the MultiPage.

If there are more Tabs than PageViews, the Tabs with no corresponding PageViews can be activated, but the MultiPage will not change the selected PageView.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the PageView object.

Property Description
Selected Retrieves a value that indicates whether the object is selected.
Visible Not supported.
Method Description
Activate Sets the current PageView to be selected.

Example

This sample shows how to create a PageView element.

<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="myNS" 
Namespace="Microsoft.Web.UI.WebControls" 
Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>

<HTML>

<BODY>

<FORM id=f1 runat="server">

<myNS:TabStrip id="tsHoriz" runat="server"
    Style="font-weight:bold;font-size:x-small"
    TabDefaultStyle="color:black;border:solid 1px black;background:#dddddd; \
        padding-left:5px;padding-right:5px;"
    TabHoverStyle="color:blue;"
    TabSelectedStyle="border:solid 1px black;border-bottom:none; \
        background:white;padding-left:5px;padding-right:5px;"
    SepDefaultStyle="border-bottom:solid 1px #000000;"
    TargetID="mpHoriz">
    <myNS:Tab Text="Inbox" />
    <myNS:TabSeparator />
    <myNS:Tab Text="Compose" />
    <myNS:TabSeparator />
    <myNS:Tab Text="Addresses" />
    <myNS:TabSeparator DefaultStyle="width:100%" />
</myNS:TabStrip>

<myNS:MultiPage id="mpHoriz" runat="server"
    Style="border:solid 1px #000000;border-top:none;padding:5px;height:150px">
    <myNS:PageView>
        <table style="width:95%;font-size:x-small;background:#dddddd"
            bordercolor="#FFFFFF" border=1 cellspacing=0 cellpadding=1>
        <tr style="font-weight:bold">
            <td> </td><td>From</td><td>Subject</td><td>Date</td>
        </tr>
        <tr>
            <td><asp:checkbox runat="server" /></td><td>a</td><td>Hello!</td>
            <td>Mon 11/27/2000 11:23 AM</td>
        </tr>
        <tr>
            <td><asp:checkbox runat="server" /></td><td>b</td><td>Hello!</td>
            <td>Tue 11/28/2000 2:03 AM</td>
        </tr>
        <tr>
            <td><asp:checkbox runat="server" /></td><td>c</td><td>Hello!</td>
            <td>Tue 11/28/2000 3:45 PM</td>
        </tr>
        <tr>
            <td><asp:checkbox runat="server" /></td><td>d</td><td>Hello!</td>
            <td>Tue 11/28/2000 6:13 PM</td>
        </tr>
        <tr>
            <td><asp:checkbox runat="server" /></td><td>e</td><td>Hello!</td>
            <td>Wed 11/29/2000 7:50 AM</td>
        </tr>
        </table>
    </myNS:PageView>
    <myNS:PageView>
        <table>
        <tr><td>To:</td><td><asp:textbox runat="server" /></td></tr>
        <tr><td>From:</td><td><asp:textbox runat="server" /></td></tr>
        <tr><td>Subject:</td><td><asp:textbox runat="server" /></td></tr>
        </table>
        <asp:TextBox runat="server" rows=5 columns=50 textmode=multiline />
    </myNS:PageView>
    <myNS:PageView>
        <table style="width:95%;font-size:x-small;background:#dddddd"
            bordercolor="#FFFFFF" border=1 cellspacing=0 cellpadding=1>
        <tr style="font-weight:bold">
            <td> </td><td>Name</td><td>E-mail</td></tr>
        <tr><td><asp:checkbox runat="server" /></td><td>a</td><td>a</td></tr>
        <tr><td><asp:checkbox runat="server" /></td><td>b</td><td>b</td></tr>
        <tr><td><asp:checkbox runat="server" /></td><td>c</td><td>c</td></tr>
        <tr><td><asp:checkbox runat="server" /></td><td>d</td><td>d</td></tr>
        </table>
    </myNS:PageView>
</myNS:MultiPage>
</FORM>
</BODY>
</HTML>

Class Information

Namespace Microsoft.Web.UI.WebControls

Applies To

MULTIPAGE

See Also

MultiPage, About the MultiPage WebControl