DataBoundLiteralControl イベント

名前 | 説明 | |
---|---|---|
![]() | DataBinding | サーバー コントロールがデータ ソースに連結すると発生します。 ( Control から継承されます。) |
![]() | Disposed | サーバー コントロールがメモリから解放されると発生します。これは、ASP.NET ページが要求されている場合のサーバー コントロールの有効期間における最終段階です。 ( Control から継承されます。) |
![]() | Init | サーバー コントロールが初期化されると発生します。これは、サーバー コントロールの有効期間における最初の手順です。 ( Control から継承されます。) |
![]() | Load | サーバー コントロールが Page オブジェクトに読み込まれると発生します。 ( Control から継承されます。) |
![]() | PreRender | Control オブジェクトの読み込み後、表示を開始する前に発生します。 ( Control から継承されます。) |
![]() | Unload | サーバー コントロールがメモリからアンロードされると発生します。 ( Control から継承されます。) |

DataBoundLiteralControl クラス
アセンブリ: System.Web (system.web.dll 内)



DataBoundLiteralControl オブジェクトを取得するクラスを作成し、このオブジェクトの Text プロパティを表示する方法を次のコード例に示します。
Imports System Imports System.Web Imports System.Web.UI Namespace Samples.AspNet.VB.Controls Public Class MyControlVB Inherits Control <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="FullTrust")> _ Protected Overrides Sub Render(Output As HtmlTextWriter) ' Checks if a DataBoundLiteralControl object is present. If HasControls() And TypeOf Controls(0) Is DataBoundLiteralControl Then ' Obtains the DataBoundLiteralControl instance. Dim boundLiteralControl As DataBoundLiteralControl = CType(Controls(0), DataBoundLiteralControl) ' Retrieves the text in the boundLiteralControl object. Dim text As String = boundLiteralControl.Text output.Write(("<h4>Your Message: " + text + "</h4>")) End If End Sub 'Render End Class 'MyControl End Namespace 'MyUserControl
using System; using System.Web; using System.Web.UI; namespace Samples.AspNet.CS.Controls { public class MyControl : Control { [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")] protected override void Render(HtmlTextWriter output) { // Checks if a DataBoundLiteralControl object is present. if ( (HasControls()) && (Controls[0] is DataBoundLiteralControl) ) { // Obtains the DataBoundLiteralControl instance. DataBoundLiteralControl boundLiteralControl = (DataBoundLiteralControl)Controls[0]; // Retrieves the text in the boundLiteralControl object. String text = boundLiteralControl.Text; output.Write("<h4>Your Message: " +text+"</h4>"); } } } }
/*File name: myDataBoundLiteralControl.jsl */ import System.*; import System.Web.*; import System.Web.UI.*; public class MyControl extends Control { protected void Render(HtmlTextWriter output) { // Checks if a DataBoundLiteralControl object is present. if (HasControls() && get_Controls().get_Item(0) instanceof DataBoundLiteralControl) { // Obtains the DataBoundLiteralControl instance. DataBoundLiteralControl boundLiteralControl = (DataBoundLiteralControl)get_Controls().get_Item(0); // Retrieves the text in the boundLiteralControl object. String text = boundLiteralControl.get_Text(); output.Write("<h4>Your Message: " + text + "</h4>"); } } //Render } //MyControl

System.Web.UI.Control
System.Web.UI.DataBoundLiteralControl


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataBoundLiteralControl コンストラクタ
アセンブリ: System.Web (system.web.dll 内)

Dim staticLiteralsCount As Integer Dim dataBoundLiteralCount As Integer Dim instance As New DataBoundLiteralControl(staticLiteralsCount, dataBoundLiteralCount)

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataBoundLiteralControl プロパティ



DataBoundLiteralControl メソッド


名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

DataBoundLiteralControl メンバ
データ バインディング式および静的なリテラル テキストを保持します。このクラスは継承できません。
DataBoundLiteralControl データ型で公開されるメンバを以下の表に示します。




名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | DataBinding | サーバー コントロールがデータ ソースに連結すると発生します。(Control から継承されます。) |
![]() | Disposed | サーバー コントロールがメモリから解放されると発生します。これは、ASP.NET ページが要求されている場合のサーバー コントロールの有効期間における最終段階です。(Control から継承されます。) |
![]() | Init | サーバー コントロールが初期化されると発生します。これは、サーバー コントロールの有効期間における最初の手順です。(Control から継承されます。) |
![]() | Load | サーバー コントロールが Page オブジェクトに読み込まれると発生します。(Control から継承されます。) |
![]() | PreRender | Control オブジェクトの読み込み後、表示を開始する前に発生します。(Control から継承されます。) |
![]() | Unload | サーバー コントロールがメモリからアンロードされると発生します。(Control から継承されます。) |


Weblioに収録されているすべての辞書からDataBoundLiteralControlを検索する場合は、下記のリンクをクリックしてください。

- DataBoundLiteralControlのページへのリンク