ObjectList 類別

定義

警告

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

可讓您指定多個欄位依物件清單中每個項目顯示。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public ref class ObjectList : System::Web::UI::MobileControls::PagedControl, System::Web::UI::INamingContainer, System::Web::UI::IPostBackEventHandler, System::Web::UI::MobileControls::ITemplateable
[System.Web.UI.MobileControls.DesignerAdapter(typeof(System.Web.UI.Design.MobileControls.Adapters.DesignerObjectListAdapter))]
public class ObjectList : System.Web.UI.MobileControls.PagedControl, System.Web.UI.INamingContainer, System.Web.UI.IPostBackEventHandler, System.Web.UI.MobileControls.ITemplateable
[System.Web.UI.MobileControls.DesignerAdapter(typeof(System.Web.UI.Design.MobileControls.Adapters.DesignerObjectListAdapter))]
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public class ObjectList : System.Web.UI.MobileControls.PagedControl, System.Web.UI.INamingContainer, System.Web.UI.IPostBackEventHandler, System.Web.UI.MobileControls.ITemplateable
[<System.Web.UI.MobileControls.DesignerAdapter(typeof(System.Web.UI.Design.MobileControls.Adapters.DesignerObjectListAdapter))>]
type ObjectList = class
    inherit PagedControl
    interface INamingContainer
    interface ITemplateable
    interface IPostBackEventHandler
[<System.Web.UI.MobileControls.DesignerAdapter(typeof(System.Web.UI.Design.MobileControls.Adapters.DesignerObjectListAdapter))>]
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type ObjectList = class
    inherit PagedControl
    interface INamingContainer
    interface ITemplateable
    interface IPostBackEventHandler
Public Class ObjectList
Inherits PagedControl
Implements INamingContainer, IPostBackEventHandler, ITemplateable
繼承
屬性
實作

範例

下列程式代碼範例示範如何建立使用者定義類別的陣列,然後在頁面載入時將其系結至 ObjectList 物件。 它也會顯示清單和詳細數據檢視如何顯示命令。 在此範例中,也有一個按鈕會顯示表單,其中包含使用 AllFields 屬性的所有欄位清單。

注意

下列程式代碼範例會使用單一檔案程式代碼模型,如果直接複製到程式代碼後置檔案,可能無法正常運作。 此程式代碼範例必須複製到擴展名為 .aspx 的空白文字檔中。 如需詳細資訊,請參閱 ASP.NET Web Forms 頁碼模型

<%@ Page Language="C#" 
    Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls" 
    Assembly="System.Web.Mobile" %>

<script runat="server">
    int bakeryCount = 0, dairyCount = 0, produceCount = 0;

    public void Page_Load(Object o, EventArgs e)
    {
        if (!IsPostBack)
        {   // Create an array and bind it to the list
            ArrayList arr = new ArrayList();
            arr.Add (new GroceryItem 
                ("Bakery", "Rolls", "On Sale"));
            arr.Add (new GroceryItem 
                ("Dairy", "Eggnog", "Half price"));
            arr.Add (new GroceryItem 
                ("Produce", "Apples", 
                "A dollar a bushel"));
            arr.Add (new GroceryItem 
                ("Bakery", "Bread", "On Sale"));

            List1.DataSource = arr;
            List1.DataBind ();

            // To show only one field on opening page,
            // comment the next line
            List1.TableFields = "Item;Department";
            List1.LabelField = "Department";

            // Display a report after items are databound
            string txt = "Number of items by Department<br>Produce: {0}<br />" +
                "Dairy: {1}<br />Bakery: {2}";
            TextView2.Text = String.Format(txt, produceCount, dairyCount, bakeryCount);
        }
    }

    // Command event for buttons
    public void List1_Click(Object sender, 
        ObjectListCommandEventArgs e)
    {
        if (e.CommandName == "Reserve")
           ActiveForm = Form2;
        else if (e.CommandName == "Buy")
           ActiveForm = Form3;
        else
           ActiveForm = Form4;
    }

    //<Snippet4>
    // Count items in each department
    private void List1_ItemDataBind(object sender, ObjectListDataBindEventArgs e)
    {
        switch (((GroceryItem)e.DataItem).Department)
        {
            case "Bakery":
                bakeryCount++;
                break;
            case "Dairy":
                dairyCount++;
                break;
            case "Produce":
                produceCount++;
                break;
        }
    }
    //</Snippet4>

    //<Snippet2>
    private void AllFields_Click(object sender, EventArgs e)
    {
        ActiveForm = Form5;
        string spec = "{0}: {1}<br/>";
        IObjectListFieldCollection flds = List1.AllFields;
        for (int i = 0; i < flds.Count; i++)
            TextView1.Text += 
                String.Format(spec, (i + 1), flds[i].Title);
    }
    //</Snippet2>

    // Structure for ArrayList records
    private class GroceryItem
    {   // A private class for the Grocery List
        private String _department, _item, _status;
        public GroceryItem(string department,
            string item, string status)
        {
            _department = department;
            _item = item;
            _status = status;
        }
        public String Department
        { get { return _department; } }
        public String Item
        { get { return _item; } }
        public String Status
        { get { return _status; } }
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
    <mobile:Form id="Form1" runat="server" BackColor="LightBlue">
        <mobile:ObjectList id="List1" runat="server" 
            OnItemCommand="List1_Click" OnItemDataBind="List1_ItemDataBind">
            <DeviceSpecific ID="DeviceSpecific1" Runat="server">
                <!-- See Web.config for filters -->
                <Choice Filter="isWML11" CommandStyle-Font-Bold="NotSet" />
                <Choice CommandStyle-Font-Bold="true" 
                    CommandStyle-Font-Name="Arial" />
            </DeviceSpecific>
            <Command Name="Reserve" Text="Reserve" />
            <Command Name="Buy" Text="Buy" />
        </mobile:ObjectList>
        <mobile:Command ID="AllFieldsCmd" Runat="server" 
            OnClick="AllFields_Click">
            List All Fields</mobile:Command>
        <mobile:TextView ID="TextView2" Runat="server" />
    </mobile:Form>
    <mobile:Form id="Form2" runat="server" BackColor="LightBlue">
        <mobile:Label id="ResLabel" runat="server"
            text="Sale item reservation system coming soon!" />
        <mobile:Link id="ResLink" NavigateURL="#Form1" 
            runat="server" text="Return" />
    </mobile:Form>
    <mobile:Form id="Form3" runat="server" BackColor="LightBlue">
        <mobile:Label id="BuyLabel" runat="server"
            Text="Online purchasing system coming soon!" />
        <mobile:Link ID="BuyLink" NavigateURL="#Form1" 
            Runat="server" text="Return" />
    </mobile:Form>
    <mobile:Form id="Form4" Runat="server" BackColor="LightBlue">
        <mobile:Label ID="DefLabel" Runat="server" 
             Text="Detailed item descriptions will be here soon!"/>
        <mobile:Link ID="DefLink" NavigateURL="#Form1" 
            Runat="server" Text="Return" />
    </mobile:Form>
    <mobile:Form ID="Form5" Runat="server">
        <mobile:Label Runat="server">
            List of AllFields:</mobile:Label>
        <mobile:TextView ID="TextView1" Runat="server" />
        <mobile:Link Runat="server" NavigateUrl="#Form1" 
            Text="Return"></mobile:Link>
    </mobile:Form>
</body>
</html>
<%@ Page Language="VB" 
    Inherits="System.Web.UI.MobileControls.MobilePage" %>
<%@ Register TagPrefix="mobile" 
    Namespace="System.Web.UI.MobileControls" 
    Assembly="System.Web.Mobile" %>

<script runat="server">
    Dim bakeryCount, dairyCount, produceCount As Integer

    Private Sub Page_Load(ByVal o As Object, ByVal e As EventArgs)
        If Not IsPostBack Then
            ' Create an array and bind it to the list
            Dim arr As New ArrayList()
            arr.Add(New GroceryItem _
                ("Bakery", "Rolls", "On Sale"))
            arr.Add(New GroceryItem _
                ("Dairy", "Eggnog", "Half price"))
            arr.Add(New GroceryItem _
                ("Produce", "Apples", _
                "A dollar a bushel"))
            arr.Add(New GroceryItem _
                ("Bakery", "Bread", "On Sale"))

            List1.DataSource = arr
            List1.DataBind()

            ' To show only one field on opening page,
            ' comment the next line
            List1.TableFields = "Item;Department"
            List1.LabelField = "Department"

            ' Display a report after items are databound
            Const txt As String = "Number of items by Department<br>Produce: " + _
                "{0}<br />Dairy: {1}<br />Bakery: {2}"
            TextView2.Text = String.Format(txt, produceCount, dairyCount, bakeryCount)
        End If
    End Sub

    ' Command event for buttons
    Private Sub List1_Click(ByVal sender As Object, _
        ByVal e As ObjectListCommandEventArgs)

        If e.CommandName = "Reserve" Then
            ActiveForm = Form2
        ElseIf e.CommandName = "Buy" Then
            ActiveForm = Form3
        Else
            ActiveForm = Form4
        End If
    End Sub

    '<Snippet4>
    ' Count items in each department
    Private Sub List1_ItemDataBind(ByVal sender As Object, ByVal e As ObjectListDataBindEventArgs)
        Select Case CType(e.DataItem, GroceryItem).Department
            Case "Bakery"
                bakeryCount += 1
            Case "Dairy"
                dairyCount += 1
            Case "Produce"
                produceCount += 1
        End Select
    End Sub
    '</Snippet4>

    '<Snippet2>
    Private Sub AllFields_Click(ByVal sender As Object, ByVal e As EventArgs)

        ActiveForm = Form5
        Dim spec As String = "{0}: {1}<br/>"
        Dim flds As IObjectListFieldCollection = List1.AllFields
        Dim i As Integer
        For i = 0 To flds.Count - 1
            TextView1.Text += _
                String.Format(spec, (i + 1), flds(i).Title)
        Next
    End Sub
    '</Snippet2>

    ' Structure for ArrayList records
    Private Class GroceryItem
        ' A private class for the Grocery List
        Private _department, _item, _status As String
        Public Sub New(ByVal department As String, _
            ByVal item As String, ByVal status As String)
            _department = department
            _item = item
            _status = status
        End Sub
        Public ReadOnly Property Department() As String
            Get
                Return _department
            End Get
        End Property
        Public ReadOnly Property Item() As String
            Get
                Return _item
            End Get
        End Property
        Public ReadOnly Property Status() As String
            Get
                Return _status
            End Get
        End Property
    End Class
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
    <mobile:Form id="Form1" runat="server" BackColor="LightBlue">
        <mobile:ObjectList id="List1" runat="server" 
            OnItemCommand="List1_Click" OnItemDataBind="List1_ItemDataBind">
            <DeviceSpecific ID="DeviceSpecific1" Runat="server">
                <!-- See Web.config for filters -->
                <Choice Filter="isWML11" CommandStyle-Font-Bold="NotSet" />
                <Choice CommandStyle-Font-Bold="true" 
                    CommandStyle-Font-Name="Arial" />
            </DeviceSpecific>
            <Command Name="Reserve" Text="Reserve" />
            <Command Name="Buy" Text="Buy" />
        </mobile:ObjectList>
        <mobile:Command ID="AllFieldsCmd" Runat="server" 
            OnClick="AllFields_Click">
            List All Fields</mobile:Command>
        <mobile:TextView ID="TextView2" Runat="server" />
    </mobile:Form>
    <mobile:Form id="Form2" runat="server" BackColor="LightBlue">
        <mobile:Label id="ResLabel" runat="server"
            text="Sale item reservation system coming soon!" />
        <mobile:Link id="ResLink" NavigateURL="#Form1" 
            runat="server" text="Return" />
    </mobile:Form>
    <mobile:Form id="Form3" runat="server" BackColor="LightBlue">
        <mobile:Label id="BuyLabel" runat="server"
            Text="Online purchasing system coming soon!" />
        <mobile:Link ID="BuyLink" NavigateURL="#Form1" 
            Runat="server" text="Return" />
    </mobile:Form>
    <mobile:Form id="Form4" Runat="server" BackColor="LightBlue">
        <mobile:Label ID="DefLabel" Runat="server" 
             Text="Detailed item descriptions will be here soon!"/>
        <mobile:Link ID="DefLink" NavigateURL="#Form1" 
            Runat="server" Text="Return" />
    </mobile:Form>
    <mobile:Form ID="Form5" Runat="server">
        <mobile:Label ID="Label1" Runat="server">
            List of AllFields:</mobile:Label>
        <mobile:TextView ID="TextView1" Runat="server" />
        <mobile:Link ID="Link1" Runat="server" NavigateUrl="#Form1" 
            Text="Return"></mobile:Link>
    </mobile:Form>
</body>
</html>

這是具有數個裝置特定篩選條件的範例 Web.config 檔案。

備註

的大部分行為 ObjectList,包括透過裝置範本集和內部分頁進行範本化轉譯的支持,類似於的行為 List。 如需詳細資訊,請參閱 ObjectList 控件 簡介或 分頁 檔。

建構函式

ObjectList()
已淘汰.

建立 ObjectList 類別的新執行個體。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

屬性

Adapter
已淘汰.

針對控制項傳回裝置的特定配置器。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
Alignment
已淘汰.

取得或設定樣式的指定對齊方式。 預設值是 NotSet。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
AllFields
已淘汰.

無論明確產生或自動產生,都從 ObjectList 類別傳回所有欄位的集合。 預設值是自動產生欄位的集合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

AppRelativeTemplateSourceDirectory
已淘汰.

取得或設定包含了此控制項之 PageUserControl 物件的相對應用程式虛擬目錄。

(繼承來源 Control)
AutoGenerateFields
已淘汰.

指定是否必須從資料自動產生欄位。 啟用時,資料的每個公用 (Public) 屬性會變成控制項的欄位。 預設值是 true。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

BackColor
已淘汰.

取得或設定樣式的指定背景色彩。 預設值是 Empty。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
BackCommandText
已淘汰.

取得或設定從 Details 檢視傳回之命令所使用的文字 (以螢幕鍵盤或連結存取)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

BindingContainer
已淘汰.

取得包含了此控制項之資料繫結的控制項。

(繼承來源 Control)
BreakAfter
已淘汰.

取得或設定屬性,這個屬性決定控制項之後是否呈現其他尾端分行符號。 這個分行符號會使後續內容從下一行開始。 預設為 true。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
ChildControlsCreated
已淘汰.

取得值,指出是否已經建立伺服器控制項的子控制項。

(繼承來源 Control)
ClientID
已淘汰.

取得 ASP.NET 所產生之 HTML 標記的控制項識別碼。

(繼承來源 Control)
ClientIDMode
已淘汰.

取得或設定用來產生 ClientID 屬性值的演算法。

(繼承來源 Control)
ClientIDSeparator
已淘汰.

取得字元值,表示在 ClientID 屬性中所使用的分隔字元。

(繼承來源 Control)
Commands
已淘汰.

取得 ObjectList 物件中命令的集合。 這個集合一開始是空的。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CommandStyle
已淘汰.

取得或設定物件清單命令所使用的樣式。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Context
已淘汰.

取得與目前 Web 要求的伺服器控制項關聯的 HttpContext 物件。

(繼承來源 Control)
Controls
已淘汰.

取得 ControlCollection 物件,表示 UI 階層架構中指定之伺服器控制項的子控制項。

(繼承來源 Control)
CustomAttributes
已淘汰.

傳回一組針對控制項定義的自訂屬性 (Attribute)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
DataItemContainer
已淘汰.

如果命名容器實作 IDataItemContainer,則取得命名容器的參考。

(繼承來源 Control)
DataKeysContainer
已淘汰.

如果命名容器實作 IDataKeysControl,則取得命名容器的參考。

(繼承來源 Control)
DataMember
已淘汰.

取得或設定資料繫結 (Data Binding) 至清單資料來源時,要擷取的資料成員。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

DataSource
已淘汰.

取得或設定正在進行繫結之清單的資料來源。 預設值為 null。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

DefaultCommand
已淘汰.

取得或設定預設命令的名稱。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

DesignMode
已淘汰.

取得值,指出控制項是否正用於設計介面上。

(繼承來源 Control)
Details
已淘汰.

傳回包含特定裝置詳細資料檢視的面版。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

DetailsCommandText
已淘汰.

取得或設定顯示詳細資料檢視之功能表項目所使用的文字。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

DeviceSpecific
已淘汰.

取得或設定與控制項關聯的 DeviceSpecific/Choice 建構。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
EnableTheming
已淘汰.

取得值,指出主題是否套用至此控制項。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
EnableViewState
已淘汰.

取得或設定值,該值表示伺服器控制項是否對要求的用戶端而言保持其檢視狀態,以及它包含的任何子控制項狀態。

(繼承來源 Control)
Events
已淘汰.

取得控制項事件處理常式委派 (Delegate) 的清單。 這個屬性是唯讀的。

(繼承來源 Control)
Fields
已淘汰.

取得 ObjectListFieldCollection 類別中已明確定義欄位的集合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

FirstPage
已淘汰.

傳回會出現這個控制項之表單的第一頁。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
FirstVisibleItemIndex
已淘汰.

取得目前表單頁面上的第一個可見項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
Font
已淘汰.

取得 FontInfo 物件,這個物件包含控制項的字型資訊。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
ForeColor
已淘汰.

取得或設定樣式的指定前景色彩。 通常這個屬性會設定文字的色彩。 預設值是 Empty。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
Form
已淘汰.

可用來存取包含表單。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
HasChildViewState
已淘汰.

取得值,指出目前伺服器控制項的子控制項是否有任何已儲存的檢視狀態設定。

(繼承來源 Control)
HasItemCommandHandler
已淘汰.

取得值,指出 ObjectList 控制項是否具有為適當 ItemCommand 事件註冊的事件處理常式。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

ID
已淘汰.

取得或設定指派給伺服器控制項的程式設計識別項。

(繼承來源 Control)
IdSeparator
已淘汰.

取得用來分隔控制項識別項的字元。

(繼承來源 Control)
InnerText
已淘汰.

傳回控制項內的文字。 內部文字可能是來自子控制項的文字組合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
InternalItemCount
已淘汰.

取得控制項中的項目數。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

IsChildControlStateCleared
已淘汰.

取得值,指出這個控制項中所包含的控制項是否有控制項狀態。

(繼承來源 Control)
IsTemplated
已淘汰.

取得值,指出 MobileControl 物件是否有現用的樣板集。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
IsTrackingViewState
已淘汰.

取得值,指出伺服器控制項是否正在儲存檢視狀態的變更。

(繼承來源 Control)
IsViewStateEnabled
已淘汰.

取得值,指出這個控制項是否已啟用檢視狀態。

(繼承來源 Control)
ItemCount
已淘汰.

取得或設定控制項中的項目計數。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
Items
已淘汰.

取得 ObjectListItemCollection 清單中項目的集合。 預設值為空集合。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

ItemsPerPage
已淘汰.

取得或設定在分頁之後每頁顯示的項目數目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
ItemWeight
已淘汰.

取得控制項中單一項目的近似權重。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
LabelField
已淘汰.

取得或設定識別欄位的值 (名稱或資料欄位),做為每個項目的標籤來使用。 預設值是空白的,這會造成 AllFields 集合中的第一個欄位被當做每個項目的標籤。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

LabelFieldIndex
已淘汰.

取得欄位之 AllFields 集合的索引,該欄位已由 LabelField 屬性設定完成。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

LabelStyle
已淘汰.

取得或設定標頭標籤所使用的樣式。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

LastPage
已淘汰.

傳回顯示所指定控制項之表單的最後一頁。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
LoadViewStateByID
已淘汰.

取得值,指出控制項是否依 ID (而不是索引) 參與載入其檢視狀態。

(繼承來源 Control)
MobilePage
已淘汰.

傳回所包含的頁面。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
MoreText
已淘汰.

取得或設定在 HTML 瀏覽器上 More 連結使用的文字字串,以巡覽至詳細資料檢視。 預設是 More 或對等的當地語系化文字。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

NamingContainer
已淘汰.

取得伺服器控制項命名容器的參考,其建立唯一命名空間,在具有相同 ID 屬性值的伺服器控制項之間作區別。

(繼承來源 Control)
Page
已淘汰.

取得含有伺服器控制項的 Page 執行個體的參考。

(繼承來源 Control)
PaginateChildren
已淘汰.

取得值,指出是否必須對控制項的子系進行分頁。 用於表單編頁。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
Parent
已淘汰.

在網頁控制階層架構中取得伺服器控制項之父控制項的參考。

(繼承來源 Control)
RenderingCompatibility
已淘汰.

取得值,這個值會指定將與呈現 HTML 相容的 ASP.NET 版本。

(繼承來源 Control)
SelectedIndex
已淘汰.

傳回選取項目的索引。 預設值是 -1。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Selection
已淘汰.

傳回選取的項目,如果沒有選取任何項目,則為 null。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

SelectMoreCommand
已淘汰.

取得命令所使用的文字,以在 ObjectList 中選取更多項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Site
已淘汰.

當呈現在設計介面上時,取得裝載目前控制項之容器的資訊。

(繼承來源 Control)
SkinID
已淘汰.

取得要套用至控制項的面板 ID。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
Style
已淘汰.

取得控制項的樣式。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
StyleReference
已淘汰.

取得或設定控制項的樣式屬性參考。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
TableFieldIndices
已淘汰.

取得 AllFields 屬性中欄位之 TableFields 集合內的索引陣列。 預設值是 null。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

TableFields
已淘汰.

取得或設定當清單檢視以資料表模式顯示時哪些欄位是為可見的。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

TemplateControl
已淘汰.

取得或設定包含了此控制項之樣板的參考。

(繼承來源 Control)
TemplateSourceDirectory
已淘汰.

取得包含目前伺服器控制項的 PageUserControl 的虛擬目錄。

(繼承來源 Control)
UniqueID
已淘汰.

取得伺服器控制項唯一的、符合階層架構的識別項。

(繼承來源 Control)
ValidateRequestMode
已淘汰.

取得或設定值,指出控制項是否對來自瀏覽器的用戶端輸入檢查潛在的危險值。

(繼承來源 Control)
ViewMode
已淘汰.

取得或設定 ObjectList 的檢視模式。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

ViewState
已淘汰.

取得狀態資訊的字典,允許您在相同網頁的多個要求之間,儲存和還原伺服器控制項的檢視狀態。

(繼承來源 Control)
ViewStateIgnoresCase
已淘汰.

取得值,指出 StateBag 物件是否不區分大小寫。

(繼承來源 Control)
ViewStateMode
已淘汰.

取得或設定這個控制項的檢視狀態模式。

(繼承來源 Control)
Visible
已淘汰.

取得或設定值,指出伺服器控制項是否會轉譯為頁面上的 UI。

(繼承來源 Control)
VisibleItemCount
已淘汰.

取得目前 ASP.NET Mobile Web Form 頁面上的可見項目數。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
VisibleWeight
已淘汰.

以字元方式取得控制項的近似權重。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
Wrapping
已淘汰.

取得或設定樣式的指定換行模式。 預設值是 NotSet。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)

方法

AddedControl(Control, Int32)
已淘汰.

在子控制項加入 Control 物件的 Controls 集合後呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
AddLinkedForms(IList)
已淘汰.

在提供的清單中加入一組表單,其中包含指定控制項的連結。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
AddParsedSubObject(Object)
已淘汰.

告知伺服器控制項,項目 (XML 或者 HTML) 已經被剖析,並將項目加入至伺服器控制項的 Controls 屬性。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

ApplyStyleSheetSkin(Page)
已淘汰.

將頁面樣式表中所定義的樣式屬性套用至控制項。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
BeginRenderTracing(TextWriter, Object)
已淘汰.

開始進行轉譯資料的設計階段追蹤。

(繼承來源 Control)
BuildProfileTree(String, Boolean)
已淘汰.

收集伺服器控制項的相關資訊,並在頁面啟用追蹤時將此資訊傳遞至 Trace 屬性以顯示之。

(繼承來源 Control)
ClearCachedClientID()
已淘汰.

將快取的 ClientID 值設定為 null

(繼承來源 Control)
ClearChildControlState()
已淘汰.

刪除伺服器控制項之子控制項的控制項狀態資訊。

(繼承來源 Control)
ClearChildState()
已淘汰.

刪除所有伺服器控制項之子控制項的檢視狀態和控制項狀態資訊。

(繼承來源 Control)
ClearChildViewState()
已淘汰.

刪除所有伺服器控制項之子控制項的檢視狀態資訊。

(繼承來源 Control)
ClearEffectiveClientIDMode()
已淘汰.

將目前的控制項執行個體和任何子控制項的 ClientIDMode 屬性設定為 Inherit

(繼承來源 Control)
CreateAutoGeneratedFields(IEnumerable)
已淘汰.

為指定的資料自動產生欄位。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CreateChildControls()
已淘汰.

告知伺服器控制項,去建立包含的任何子控制項來準備回傳或呈現。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CreateControlCollection()
已淘汰.

建立新的 ControlCollection 物件來保存伺服器控制項的子控制項 (常值和伺服器)。

(繼承來源 Control)
CreateDefaultTemplatedUI(Boolean)
已淘汰.

由裝置配接器呼叫來建立此控制項的預設範本化使用者介面 (UI)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
CreateItem(Object)
已淘汰.

建立包含這個物件的清單項目,並將清單項目繫結至指定的物件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CreateItems(IEnumerable)
已淘汰.

從指定的 dataSource 參數建立項目集合中的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CreateStyle()
已淘汰.

建構和傳回與控制項關聯的樣式物件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
CreateTemplatedItemDetails(Boolean)
已淘汰.

使用 ItemDetailsTemplate,為目前的項目建構詳細資料檢視。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

CreateTemplatedItemsList(Boolean)
已淘汰.

建置樣板 (Template) 以建構清單檢視。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

CreateTemplatedUI(Boolean)
已淘汰.

由基底類別呼叫,用以建立樣板化 UI。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
DataBind()
已淘汰.

將資料來源繫結至 ObjectList。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

DataBind(Boolean)
已淘汰.

使用會引發 DataBinding 事件的選項,繫結資料來源至叫用的伺服器控制項及其所有子控制項。

(繼承來源 Control)
DataBindChildren()
已淘汰.

繫結資料來源至伺服器控制項的子控制項。

(繼承來源 Control)
Dispose()
已淘汰.

啟用伺服器控制項,在它從記憶體釋放之前執行最後清除。

(繼承來源 Control)
EndRenderTracing(TextWriter, Object)
已淘汰.

結束轉譯資料的設計階段追蹤。

(繼承來源 Control)
EnsureChildControls()
已淘汰.

判斷伺服器控制項是否包含子控制項。 如果不包含,則建立子控制項。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

EnsureID()
已淘汰.

為尚未指定識別項的控制項,建立識別項。

(繼承來源 Control)
EnsureTemplatedUI()
已淘汰.

使用這個方法確認樣板已具現化 (Instantiated),以允許用程式設計方式存取樣板的具現化內容。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
FindControl(String)
已淘汰.

在目前命名容器搜尋具有指定 id 參數的伺服器控制項。

(繼承來源 Control)
FindControl(String, Int32)
已淘汰.

使用指定的 id 和有助於搜尋之 pathOffset 參數中所指定的整數,在目前的命名容器中搜尋伺服器控制項。 您不應該覆寫這個版本的 FindControl 方法。

(繼承來源 Control)
Focus()
已淘汰.

設定控制項的輸入焦點。

(繼承來源 Control)
GetAttribute(String)
已淘汰.

從控制項中擷取指定之屬性 (Attribute) 的屬性 (Property)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
GetDesignModeState()
已淘汰.

取得控制項的設計階段資料。

(繼承來源 Control)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetRouteUrl(Object)
已淘汰.

取得會對應於一組路由參數的 URL。

(繼承來源 Control)
GetRouteUrl(RouteValueDictionary)
已淘汰.

取得會對應於一組路由參數的 URL。

(繼承來源 Control)
GetRouteUrl(String, Object)
已淘汰.

取得 URL,此 URL 對應於一組路由參數及一個路由名稱。

(繼承來源 Control)
GetRouteUrl(String, RouteValueDictionary)
已淘汰.

取得 URL,此 URL 對應於一組路由參數及一個路由名稱。

(繼承來源 Control)
GetTemplate(String)
已淘汰.

傳回具有指定名稱的樣板。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
GetUniqueIDRelativeTo(Control)
已淘汰.

傳回指定之控制項 UniqueID 屬性的前置部分。

(繼承來源 Control)
HasControls()
已淘汰.

判斷伺服器控制項是否包含任何子控制項。

(繼承來源 Control)
HasEvents()
已淘汰.

傳回值,指出控制項或任何子控制項的事件是否已註冊。

(繼承來源 Control)
IsFormSubmitControl()
已淘汰.

如果控制項會送出表單,則傳回 true。 預設為 false。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
IsLiteralContent()
已淘汰.

判斷伺服器控制項是否只儲存常值內容。

(繼承來源 Control)
IsVisibleOnPage(Int32)
已淘汰.

傳回是否可以在表單的特定頁面上看見控制項。 用於表單編頁。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
LoadControlState(Object)
已淘汰.

SaveControlState() 方法所儲存的上一頁要求中,還原控制項狀態資訊。

(繼承來源 Control)
LoadPrivateViewState(Object)
已淘汰.

載入私用檢視狀態。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

LoadViewState(Object)
已淘汰.

SaveViewState() 方法所儲存的先前頁面要求來還原檢視狀態資訊。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

MapPathSecure(String)
已淘汰.

擷取虛擬絕對路徑或相對路徑所對應至的實體路徑。

(繼承來源 Control)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
OnBubbleEvent(Object, EventArgs)
已淘汰.

決定伺服器控制項的事件是否要在頁面的 UI 伺服器控制項階層架構中向上傳遞。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnDataBinding(EventArgs)
已淘汰.

引發 DataBinding 事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnInit(EventArgs)
已淘汰.

引發 Init 事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
OnItemCommand(ObjectListCommandEventArgs)
已淘汰.

當清單項目因為使用者互動而產生事件時會呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnItemDataBind(ObjectListDataBindEventArgs)
已淘汰.

當清單項目已資料繫結時會呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnItemSelect(ObjectListSelectEventArgs)
已淘汰.

在使用者選取項目後呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnLoad(EventArgs)
已淘汰.

引發 Unload 事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
OnLoadItems(LoadItemsEventArgs)
已淘汰.

當控制項已自訂分頁且需要更多資料時呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnPageChange(Int32, Int32)
已淘汰.

編頁控制項。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
OnPreRender(EventArgs)
已淘汰.

引發 PreRender 事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnRender(HtmlTextWriter)
已淘汰.

呈現指定輸出資料流的控制項。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
OnShowItemCommands(ObjectListShowCommandsEventArgs)
已淘汰.

在顯示清單項目的命令集之前會呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

OnUnload(EventArgs)
已淘汰.

引發 Unload 事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
OpenFile(String)
已淘汰.

取得用來讀取檔案的 Stream

(繼承來源 Control)
PaginateRecursive(ControlPager)
已淘汰.

將控制項和其子系編頁。 由 ASP.NET 內部呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
PreShowItemCommands(Int32)
已淘汰.

藉由呼叫 ShowItemCommands 事件上可能會設定的任一事件處理常式,以在顯示指定項目前先準備其命令集。 由 ASP.NET 內部呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

RaiseBubbleEvent(Object, EventArgs)
已淘汰.

指派事件的任何來源和它的資訊至控制項的父控制項。

(繼承來源 Control)
RaiseDefaultItemEvent(Int32)
已淘汰.

進行呼叫,以引發與指定項目相關聯之預設命令的事件。 由 ASP.NET 內部呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

RaisePostBackEvent(String)
已淘汰.

通知 ObjectList 物件有回傳事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

RemovedControl(Control)
已淘汰.

Control 物件的 Controls 集合中移除子控制項之後呼叫。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
Render(HtmlTextWriter)
已淘汰.

將伺服器控制項內容傳送到提供的 HtmlTextWriter 物件,以寫入要在用戶端上呈現的內容。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
RenderChildren(HtmlTextWriter)
已淘汰.

使用提供的 HtmlTextWriter,輸出伺服器控制項之子控制項的內容。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
RenderControl(HtmlTextWriter)
已淘汰.

將伺服器控制項內容輸出至提供的 HtmlTextWriter 物件,並在啟用追蹤時儲存控制項的追蹤資訊。

(繼承來源 Control)
RenderControl(HtmlTextWriter, ControlAdapter)
已淘汰.

使用提供的 HtmlTextWriter 物件,輸出伺服器控制項內容至提供的 ControlAdapter 物件。

(繼承來源 Control)
ResolveAdapter()
已淘汰.

取得負責呈現指定之控制項的控制項配置器。

(繼承來源 Control)
ResolveClientUrl(String)
已淘汰.

取得瀏覽器可使用的 URL。

(繼承來源 Control)
ResolveFormReference(String)
已淘汰.

傳回名稱參數所參考的表單物件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
ResolveUrl(String)
已淘汰.

將 URL 轉換為要求用戶端可使用的 URL。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
SaveControlState()
已淘汰.

儲存頁面回傳至伺服器以來,所發生的任何伺服器控制項狀態變更。

(繼承來源 Control)
SavePrivateViewState()
已淘汰.

儲存從持續性中載入頁面以來所發生的任何私用檢視狀態變更。 如果沒有任何變更,這個方法會傳回 null (在 Visual Basic 中為 Nothing)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

SaveViewState()
已淘汰.

儲存自頁面回傳至伺服器以來所發生的任何伺服器控制項檢視狀態變更。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

SelectListItem(Int32, Boolean)
已淘汰.

測試是否有選取 ObjectList 中的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

SetAttribute(String, String)
已淘汰.

指定要指派給 MobileControl 物件的屬性及其值。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
SetDesignModeState(IDictionary)
已淘汰.

設定控制項的設計階段資料。

(繼承來源 Control)
SetRenderMethodDelegate(RenderMethod)
已淘汰.

指定事件處理常式委派,以呈現伺服器控制項及其內容至其父控制項。

(繼承來源 Control)
SetTraceData(Object, Object)
已淘汰.

使用追蹤資料機碼和追蹤資料值,設定設計階段期間追蹤呈現資料的追蹤資料。

(繼承來源 Control)
SetTraceData(Object, Object, Object)
已淘汰.

使用追蹤的物體、追蹤資料機碼和追蹤資料值,設定設計階段期間追蹤呈現資料的追蹤資料。

(繼承來源 Control)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)
TrackViewState()
已淘汰.

導致對伺服器控制項的檢視狀態變更的追蹤 (Tracking),以便它們能夠儲存於伺服器控制項的 StateBag 物件。 這個物件可透過 ViewState 屬性存取。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

事件

DataBinding
已淘汰.

發生於伺服器控制項繫結至資料來源時。

(繼承來源 Control)
Disposed
已淘汰.

發生於伺服器控制項從記憶體釋放時,這是在要求 ASP.NET 網頁時,伺服器控制項生命週期的最後階段。

(繼承來源 Control)
Init
已淘汰.

發生於初始化伺服器控制項時,是其生命週期中的第一個步驟。

(繼承來源 Control)
ItemCommand
已淘汰.

發生於使用者選取與 ObjectList 項目關聯的命令時。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

ItemDataBind
已淘汰.

ObjectList 中的項目繫結至資料時會發生。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

ItemSelect
已淘汰.

使用者從清單檢視中選取項目時會發生。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

Load
已淘汰.

發生於載入伺服器控制項至 Page 物件時。

(繼承來源 Control)
LoadItems
已淘汰.

控制項已自訂分頁且需要更多資料時會發生。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 PagedControl)
PreRender
已淘汰.

Control 物件載入之後但在呈現之前發生。

(繼承來源 Control)
ShowItemCommands
已淘汰.

在顯示與 ObjectList 的項目相關的命令前發生。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

Unload
已淘汰.

發生於伺服器控制項從記憶體卸載時。

(繼承來源 Control)

明確介面實作

IAttributeAccessor.GetAttribute(String)
已淘汰.

如需這個方法的說明,請參閱 GetAttribute(String)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
IAttributeAccessor.SetAttribute(String, String)
已淘汰.

如需這個成員的說明,請參閱 SetAttribute(String, String)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

(繼承來源 MobileControl)
IControlBuilderAccessor.ControlBuilder
已淘汰.

如需這個成員的說明,請參閱 ControlBuilder

(繼承來源 Control)
IControlDesignerAccessor.GetDesignModeState()
已淘汰.

如需這個成員的說明,請參閱 GetDesignModeState()

(繼承來源 Control)
IControlDesignerAccessor.SetDesignModeState(IDictionary)
已淘汰.

如需這個成員的說明,請參閱 SetDesignModeState(IDictionary)

(繼承來源 Control)
IControlDesignerAccessor.SetOwnerControl(Control)
已淘汰.

如需這個成員的說明,請參閱 SetOwnerControl(Control)

(繼承來源 Control)
IControlDesignerAccessor.UserData
已淘汰.

如需這個成員的說明,請參閱 UserData

(繼承來源 Control)
IDataBindingsAccessor.DataBindings
已淘汰.

如需這個成員的說明,請參閱 DataBindings

(繼承來源 Control)
IDataBindingsAccessor.HasDataBindings
已淘汰.

如需這個成員的說明,請參閱 HasDataBindings

(繼承來源 Control)
IExpressionsAccessor.Expressions
已淘汰.

如需這個成員的說明,請參閱 Expressions

(繼承來源 Control)
IExpressionsAccessor.HasExpressions
已淘汰.

如需這個成員的說明,請參閱 HasExpressions

(繼承來源 Control)
IParserAccessor.AddParsedSubObject(Object)
已淘汰.

如需這個成員的說明,請參閱 AddParsedSubObject(Object)

(繼承來源 Control)
IPostBackEventHandler.RaisePostBackEvent(String)
已淘汰.

如需這個成員的說明,請參閱 RaisePostBackEvent(String)。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

擴充方法

FindDataSourceControl(Control)
已淘汰.

傳回與指定之控制項的資料控制項相關聯的資料來源。

FindFieldTemplate(Control, String)
已淘汰.

傳回在指定之控制項的命名容器中所指定資料行的欄位樣板。

FindMetaTable(Control)
已淘汰.

傳回包含資料控制項的中繼資料表物件。

GetDefaultValues(INamingContainer)
已淘汰.

取得所指定資料控制項的預設值集合。

GetMetaTable(INamingContainer)
已淘汰.

取得所指定資料控制項中的資料表中繼資料。

SetMetaTable(INamingContainer, MetaTable)
已淘汰.

設定所指定資料控制項中的資料表中繼資料。

SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>)
已淘汰.

設定所指定資料控制項的資料表中繼資料及預設值對應。

SetMetaTable(INamingContainer, MetaTable, Object)
已淘汰.

設定所指定資料控制項的資料表中繼資料及預設值對應。

TryGetMetaTable(INamingContainer, MetaTable)
已淘汰.

判斷資料表中繼資料是否可供使用。

EnableDynamicData(INamingContainer, Type)
已淘汰.

針對指定的資料控制項啟用動態資料行為。

EnableDynamicData(INamingContainer, Type, IDictionary<String,Object>)
已淘汰.

針對指定的資料控制項啟用動態資料行為。

EnableDynamicData(INamingContainer, Type, Object)
已淘汰.

針對指定的資料控制項啟用動態資料行為。

適用於

另請參閱