다음을 통해 공유


DetailsViewRow 클래스

정의

컨트롤 내의 행을 나타냅니다 DetailsView .

public ref class DetailsViewRow : System::Web::UI::WebControls::TableRow
public class DetailsViewRow : System.Web.UI.WebControls.TableRow
type DetailsViewRow = class
    inherit TableRow
Public Class DetailsViewRow
Inherits TableRow
상속
파생

예제

다음 코드 예제에서는 개체에서 필드의 값을 검색 하는 DetailsViewRow 방법을 보여 줍니다.


<%@ page language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  void SubmitButton_Click(Object sender, EventArgs e)
  {

    // Use the Count property to determine whether the
    // Rows collection contains any item.
    if (ItemDetailsView.Rows.Count > 0)
    {
      // Iterate through the Rows collection and display
      // the value of each field.
      MessageLabel.Text = "The row values are: <br/><br/>";

      foreach (DetailsViewRow row in ItemDetailsView.Rows)
      {
        // Use the Text property to access the value of 
        // each cell. In this example, the cells in the 
        // first column (index 0) contains the field names, 
        // while the cells in the second column (index 1)
        // contains the field value. 
        MessageLabel.Text += row.Cells[0].Text + " = " +
          row.Cells[1].Text + "<br/>";
      }
    }
    else
    {
      MessageLabel.Text = "No items.";
    }

  }
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>DetailsViewRow Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>DetailsViewRow Example</h3>
  
      <asp:detailsview id="ItemDetailsView"
        datasourceid="DetailsViewSource"
        allowpaging="true"
        autogeneraterows="false" 
        runat="server">
        <fields>
          <asp:boundfield datafield="CustomerID"
            headertext="Customer ID"/>
          <asp:boundfield datafield="CompanyName"
            headertext="Company Name"/>
          <asp:boundfield datafield="Address"
            headertext="Address"/>
          <asp:boundfield datafield="City"
            headertext="City"/>
          <asp:boundfield datafield="PostalCode"
            headertext="ZIP Code"/>
          <asp:boundfield datafield="Country"
            headertext="Country"/>
        </fields>
      </asp:detailsview>
      
      <br/>
      
      <asp:button id="SubmitButton" 
        text="Display Row Values"
        onclick="SubmitButton_Click"
        runat="server"/>
        
      <br/><br/>
      
      <asp:label id="MessageLabel"
        forecolor="Red"
        runat="server"/>
      
      <!-- This example uses Microsoft SQL Server and connects  -->
      <!-- to the Northwind sample database. Use an ASP.NET     -->
      <!-- expression to retrieve the connection string value   -->
      <!-- from the web.config file.                            -->
      <asp:sqldatasource id="DetailsViewSource"
        selectcommand="Select [CustomerID], [CompanyName], [Address], 
          [City], [PostalCode], [Country] From [Customers]"
        connectionstring=
          "<%$ ConnectionStrings:NorthWindConnectionString%>" 
        runat="server"/>  
  
    </form>
  </body>
</html>

<%@ page language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  Sub SubmitButton_Click(ByVal sender As Object, ByVal e As EventArgs)
 
    ' Use the Count property to determine whether the
    ' Rows collection contains any item.
    If ItemDetailsView.Rows.Count > 0 Then
    
      ' Iterate through the Rows collection and display
      ' the value of each field.
      MessageLabel.Text = "The row values are: <br/><br/>"
    
      Dim row As DetailsViewRow
    
      For Each row In ItemDetailsView.Rows

        ' Use the Text property to access the value of 
        ' each cell. In this example, the cells in the 
        ' first column (index 0) contains the field names, 
        ' while the cells in the second column (index 1)
        ' contains the field value. 
        MessageLabel.Text &= row.Cells(0).Text & " = " & _
          row.Cells(1).Text & "<br/>"
    
      Next
    
    Else
      
      MessageLabel.Text = "No items."
    
    End If
    
  End Sub
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>DetailsViewRow Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>DetailsViewRow Example</h3>
  
      <asp:detailsview id="ItemDetailsView"
        datasourceid="DetailsViewSource"
        allowpaging="true"
        autogeneraterows="false" 
        runat="server">
        <fields>
          <asp:boundfield datafield="CustomerID"
            headertext="Customer ID"/>
          <asp:boundfield datafield="CompanyName"
            headertext="Company Name"/>
          <asp:boundfield datafield="Address"
            headertext="Address"/>
          <asp:boundfield datafield="City"
            headertext="City"/>
          <asp:boundfield datafield="PostalCode"
            headertext="ZIP Code"/>
          <asp:boundfield datafield="Country"
            headertext="Country"/>
        </fields>
      </asp:detailsview>
      
      <br/>
      
      <asp:button id="SubmitButton" 
        text="Display Row Values"
        onclick="SubmitButton_Click"
        runat="server"/>
        
      <br/><br/>
      
      <asp:label id="MessageLabel"
        forecolor="Red"
        runat="server"/>
      
      <!-- This example uses Microsoft SQL Server and connects  -->
      <!-- to the Northwind sample database. Use an ASP.NET     -->
      <!-- expression to retrieve the connection string value   -->
      <!-- from the web.config file.                            -->
      <asp:sqldatasource id="DetailsViewSource"
        selectcommand="Select [CustomerID], [CompanyName], [Address], 
          [City], [PostalCode], [Country] From [Customers]"
        connectionstring=
          "<%$ ConnectionStrings:NorthWindConnectionString%>" 
        runat="server"/>  
  
    </form>
  </body>
</html>

다음 코드 예제에서는 머리글 행을 Image 나타내는 개체에서 컨트롤을 DetailsViewRow 검색 하는 방법을 보여 줍니다. 컨트롤이 Image 헤더 템플릿에 선언됩니다.


<%@ page language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  void ItemDetailsView_ItemCreated(Object sender, EventArgs e)
  {
    // Retrieve the header row. 
    DetailsViewRow headerRow = ItemDetailsView.HeaderRow;
    
    // Retrieve the Image control from the header row.
    Image logoImage = (Image)headerRow.FindControl("LogoImage");

    // Display a custom image to indicate whether the 
    // DetailsView control is in edit or read-only mode.
    switch (ItemDetailsView.CurrentMode)
    {
      case DetailsViewMode.Edit:
        logoImage.ImageUrl = "~/Images/Edit.jpg";
        break;
      case DetailsViewMode.ReadOnly:
        logoImage.ImageUrl = "~/Images/ReadOnly.jpg";
        break;
      default:
        logoImage.ImageUrl = "~/Images/Default.jpg";
        break;
    }

  }
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>DetailsViewRow Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>DetailsViewRow Example</h3>
  
      <asp:detailsview id="ItemDetailsView"
        datasourceid="DetailsViewSource"
        allowpaging="true"
        autogeneraterows="false"
        autogenerateeditbutton="true"
        datakeynames="CustomerID"  
        onitemcreated="ItemDetailsView_ItemCreated"  
        runat="server">
        <fields>
          <asp:boundfield datafield="CustomerID"
            headertext="Customer ID"/>
          <asp:boundfield datafield="CompanyName"
            headertext="Company Name"/>
          <asp:boundfield datafield="Address"
            headertext="Address"/>
          <asp:boundfield datafield="City"
            headertext="City"/>
          <asp:boundfield datafield="PostalCode"
            headertext="ZIP Code"/>
          <asp:boundfield datafield="Country"
            headertext="Country"/>
        </fields>
        
        <headertemplate>
          <asp:image id="LogoImage"
            imageurl="~/Images/Default.jpg" 
            AlternateText="Our logo" 
            runat="server"/>
        </headertemplate>
      </asp:detailsview>
      
      <!-- This example uses Microsoft SQL Server and connects  -->
      <!-- to the Northwind sample database. Use an ASP.NET     -->
      <!-- expression to retrieve the connection string value   -->
      <!-- from the web.config file.                            -->
      <asp:sqldatasource id="DetailsViewSource"
        selectcommand="Select [CustomerID], [CompanyName], [Address], 
          [City], [PostalCode], [Country] From [Customers]"
        updatecommand="Update [Customers] Set 
          [CompanyName]=@CompanyName, [Address]=@Address, 
          [City]=@City, [PostalCode]=@PostalCode, 
          [Country]=@Country 
          Where [CustomerID]=@CustomerID"
        connectionstring=
          "<%$ ConnectionStrings:NorthWindConnectionString%>" 
        runat="server"/>  
  
    </form>
  </body>
</html>

<%@ page language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  Sub ItemDetailsView_ItemCreated(ByVal sender As Object, ByVal e As EventArgs)
  
    ' Retrieve the header row. 
    Dim headerRow As DetailsViewRow = ItemDetailsView.HeaderRow
    
    ' Retrieve the Image control from the header row.
    Dim logoImage As Image = CType(headerRow.FindControl("LogoImage"), Image)

    ' Display a custom image to indicate whether the 
    ' DetailsView control is in edit or read-only mode.
    Select Case ItemDetailsView.CurrentMode

      Case DetailsViewMode.Edit
        logoImage.ImageUrl = "~/Images/Edit.jpg"

      Case DetailsViewMode.ReadOnly
        logoImage.ImageUrl = "~/Images/ReadOnly.jpg"

      Case Else
        logoImage.ImageUrl = "~/Images/Default.jpg"

    End Select

  End Sub
  
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>DetailsViewRow Example</title>
</head>
<body>
    <form id="form1" runat="server">
    
      <h3>DetailsViewRow Example</h3>
  
      <asp:detailsview id="ItemDetailsView"
        datasourceid="DetailsViewSource"
        allowpaging="true"
        autogeneraterows="false"
        autogenerateeditbutton="true"
        datakeynames="CustomerID"  
        onitemcreated="ItemDetailsView_ItemCreated"  
        runat="server">
        <fields>
          <asp:boundfield datafield="CustomerID"
            headertext="Customer ID"/>
          <asp:boundfield datafield="CompanyName"
            headertext="Company Name"/>
          <asp:boundfield datafield="Address"
            headertext="Address"/>
          <asp:boundfield datafield="City"
            headertext="City"/>
          <asp:boundfield datafield="PostalCode"
            headertext="ZIP Code"/>
          <asp:boundfield datafield="Country"
            headertext="Country"/>
        </fields>
        
        <headertemplate>
          <asp:image id="LogoImage"
            imageurl="~/Images/Default.jpg" 
            AlternateText="Our logo" 
            runat="server"/>
        </headertemplate>
      </asp:detailsview>
      
      <!-- This example uses Microsoft SQL Server and connects  -->
      <!-- to the Northwind sample database. Use an ASP.NET     -->
      <!-- expression to retrieve the connection string value   -->
      <!-- from the web.config file.                            -->
      <asp:sqldatasource id="DetailsViewSource"
        selectcommand="Select [CustomerID], [CompanyName], [Address], 
          [City], [PostalCode], [Country] From [Customers]"
        updatecommand="Update [Customers] Set 
          [CompanyName]=@CompanyName, [Address]=@Address, 
          [City]=@City, [PostalCode]=@PostalCode, 
          [Country]=@Country 
          Where [CustomerID]=@CustomerID"
        connectionstring=
          "<%$ ConnectionStrings:NorthWindConnectionString%>" 
        runat="server"/>  
  
    </form>
  </body>
</html>

설명

클래스는 DetailsViewRow 컨트롤의 개별 행 DetailsView 을 나타내는 데 사용됩니다. 컨트롤의 DetailsView 각 행에는 지정된 행 형식이 있습니다. 다음 표에서는 컨트롤에 유효한 행 형식을 나열합니다 DetailsView .

행 유형 설명
DataRow 컨트롤의 데이터 행입니다 DetailsView .
EmptyDataRow 컨트롤의 빈 데이터 행입니다 DetailsView . 표시할 레코드가 없는 경우 빈 데이터 행이 컨트롤에 표시됩니다 DetailsView .
Footer 컨트롤의 바닥글 행입니다 DetailsView .
Header 컨트롤의 머리글 행입니다 DetailsView .
Pager 컨트롤의 호출기 행입니다 DetailsView .

개체의 행 형식을 DetailsViewRow 확인하려면 속성을 사용합니다 RowType . DetailsViewRow 개체에 연결된 상태도 있습니다. 상태는 다음 표에 있는 값의 비트 조합일 수 있습니다.

상태 값 설명
Alternate 개체는 DetailsViewRow 컨트롤의 대체 행입니다 DetailsView .
Edit DetailsViewRow 개체가 편집 모드에 있습니다.
Insert DetailsViewRow 개체가 삽입 모드에 있습니다.
Normal DetailsViewRow 개체가 정상(기본값) 상태입니다.

개체의 DetailsViewRow 상태를 확인하려면 속성을 사용합니다 RowState .

컨트롤은 DetailsView 컬렉션에 모든 데이터 행을 Rows 저장합니다. 컬렉션에서 개체의 DetailsViewRow 인덱스 Rows 확인 하려면 속성을 사용 합니다 RowIndex .

속성을 사용하여 Cells 개체의 DetailsViewRow 개별 셀에 액세스할 수 있습니다. 셀에 컨트롤이 포함된 경우 셀 컬렉션을 사용하여 셀에서 컨트롤을 검색할 Controls 수 있습니다. 컨트롤에 지정된 속성이 FindControl 있는 경우 셀의 메서드를 사용하여 컨트롤을 ID 찾을 수도 있습니다.

필드 열 또는 자동으로 생성된 필드 열에서 BoundField 필드 값을 검색하려면 셀의 Text 속성을 사용합니다. 필드 값이 컨트롤에 바인딩된 다른 필드 열 형식에서 필드 값을 검색하려면 먼저 적절한 셀에서 컨트롤을 검색한 다음 컨트롤의 적절한 속성에 액세스합니다.

메모

컨트롤의 속성에 값을 바인딩하지 않고 필드 열에서 TemplateField 직접 데이터 바인딩 식을 사용할 수 있습니다. 이 경우 필드 값은 컨트롤에 DataBoundLiteralControl 자동으로 배치됩니다. 필드 값을 검색하려면 먼저 해당 셀에서 컨트롤을 DataBoundLiteralControl 검색한 다음 해당 Text 속성을 사용해야 합니다.

클래스 인스턴스 DetailsViewRow 의 초기 속성 값 목록은 생성자를 참조 DetailsViewRow 하세요.

생성자

Name Description
DetailsViewRow(Int32, DataControlRowType, DataControlRowState)

DetailsViewRow 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
AccessKey

웹 서버 컨트롤로 빠르게 이동할 수 있는 액세스 키를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
Adapter

컨트롤의 브라우저별 어댑터를 가져옵니다.

(다음에서 상속됨 Control)
AppRelativeTemplateSourceDirectory

이 컨트롤을 포함하는 개체의 Page 애플리케이션 상대 가상 디렉터리를 가져오거나 UserControl 설정합니다.

(다음에서 상속됨 Control)
Attributes

컨트롤의 속성에 해당하지 않는 임의의 특성(렌더링 전용)의 컬렉션을 가져옵니다.

(다음에서 상속됨 WebControl)
BackColor

웹 서버 컨트롤의 배경색을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BindingContainer

이 컨트롤의 데이터 바인딩을 포함하는 컨트롤을 가져옵니다.

(다음에서 상속됨 Control)
BorderColor

웹 컨트롤의 테두리 색을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BorderStyle

웹 서버 컨트롤의 테두리 스타일을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
BorderWidth

웹 서버 컨트롤의 테두리 너비를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
Cells

컨트롤에서 행 TableTableCell 셀을 나타내는 개체의 컬렉션을 가져옵니다.

(다음에서 상속됨 TableRow)
ChildControlsCreated

서버 컨트롤의 자식 컨트롤이 만들어졌는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ClientID

ASP.NET 생성되는 HTML 태그의 컨트롤 ID를 가져옵니다.

(다음에서 상속됨 Control)
ClientIDMode

속성 값을 ClientID 생성하는 데 사용되는 알고리즘을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
ClientIDSeparator

속성에 사용되는 ClientID 구분 기호 문자를 나타내는 문자 값을 가져옵니다.

(다음에서 상속됨 Control)
Context

HttpContext 현재 웹 요청에 대한 서버 컨트롤과 연결된 개체를 가져옵니다.

(다음에서 상속됨 Control)
Controls

ControlCollection UI 계층 구조에서 지정된 서버 컨트롤의 자식 컨트롤을 나타내는 개체를 가져옵니다.

(다음에서 상속됨 Control)
ControlStyle

웹 서버 컨트롤의 스타일을 가져옵니다. 이 속성은 주로 컨트롤 개발자에 의해 사용 됩니다.

(다음에서 상속됨 WebControl)
ControlStyleCreated

속성에 대해 ControlStyle 개체가 Style 만들어졌는지 여부를 나타내는 값을 가져옵니다. 이 속성은 주로 컨트롤 개발자에 의해 사용 됩니다.

(다음에서 상속됨 WebControl)
CssClass

클라이언트의 웹 서버 컨트롤에서 렌더링하는 CSS(Cascading Style Sheet) 클래스를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
DataItemContainer

명명 컨테이너가 구현하는 경우 명명 컨테이너에 대한 참조를 가져옵니다 IDataItemContainer.

(다음에서 상속됨 Control)
DataKeysContainer

명명 컨테이너가 구현하는 경우 명명 컨테이너에 대한 참조를 가져옵니다 IDataKeysControl.

(다음에서 상속됨 Control)
DesignMode

디자인 화면에서 컨트롤을 사용하고 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
Enabled

웹 서버 컨트롤을 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
EnableTheming

테마가 이 컨트롤에 적용되는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
EnableViewState

서버 컨트롤이 해당 뷰 상태와 해당 뷰에 포함된 자식 컨트롤의 뷰 상태를 요청하는 클라이언트에 유지할지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Events

컨트롤에 대한 이벤트 처리기 대리자 목록을 가져옵니다. 이 속성은 읽기 전용입니다.

(다음에서 상속됨 Control)
Font

웹 서버 컨트롤과 연결된 글꼴 속성을 가져옵니다.

(다음에서 상속됨 WebControl)
ForeColor

웹 서버 컨트롤의 전경색(일반적으로 텍스트 색)을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
HasAttributes

컨트롤에 특성 집합이 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 WebControl)
HasChildViewState

현재 서버 컨트롤의 자식 컨트롤에 저장된 뷰 상태 설정이 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
Height

웹 서버 컨트롤의 높이를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
HorizontalAlign

행에 있는 내용의 가로 맞춤을 가져오거나 설정합니다.

(다음에서 상속됨 TableRow)
ID

서버 컨트롤에 할당된 프로그래밍 식별자를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
IdSeparator

컨트롤 식별자를 구분하는 데 사용되는 문자를 가져옵니다.

(다음에서 상속됨 Control)
IsChildControlStateCleared

이 컨트롤 내에 포함된 컨트롤에 컨트롤 상태가 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
IsEnabled

컨트롤을 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 WebControl)
IsTrackingViewState

서버 컨트롤이 뷰 상태에 대한 변경 내용을 저장하고 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
IsViewStateEnabled

이 컨트롤에 대해 뷰 상태를 사용할 수 있는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
LoadViewStateByID

컨트롤이 인덱스 대신 뷰 상태를 ID 로드하는 데 참여하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
NamingContainer

동일한 ID 속성 값을 가진 서버 컨트롤을 구분하기 위한 고유한 네임스페이스를 만드는 서버 컨트롤의 명명 컨테이너에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
Page

서버 컨트롤이 포함된 인스턴스에 Page 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
Parent

페이지 컨트롤 계층 구조에서 서버 컨트롤의 부모 컨트롤에 대한 참조를 가져옵니다.

(다음에서 상속됨 Control)
RenderingCompatibility

렌더링된 HTML과 호환되는 ASP.NET 버전을 지정하는 값을 가져옵니다.

(다음에서 상속됨 Control)
RowIndex

컨트롤 컬렉션에 DetailsViewRow 있는 Rows 개체의 인덱스입니다 DetailsView .

RowState

개체의 DetailsViewRow 상태를 가져옵니다.

RowType

개체의 행 형식을 DetailsViewRow 가져옵니다.

Site

디자인 화면에서 렌더링될 때 현재 컨트롤을 호스트하는 컨테이너에 대한 정보를 가져옵니다.

(다음에서 상속됨 Control)
SkinID

컨트롤에 적용할 스킨을 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
Style

웹 서버 컨트롤의 외부 태그에 스타일 특성으로 렌더링될 텍스트 특성의 컬렉션을 가져옵니다.

(다음에서 상속됨 WebControl)
SupportsDisabledAttribute

컨트롤의 속성false이 "disabled"일 때 IsEnabled 컨트롤이 렌더링된 HTML 요소의 특성을 "disabled"로 설정 disabled 해야 하는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 TableRow)
TabIndex

웹 서버 컨트롤의 탭 인덱스 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
TableSection

컨트롤에서 개체 Table 의 위치를 TableRow 가져오거나 설정합니다.

(다음에서 상속됨 TableRow)
TagKey

HtmlTextWriterTag 이 웹 서버 컨트롤에 해당하는 값을 가져옵니다. 이 속성은 주로 컨트롤 개발자에 의해 사용 됩니다.

(다음에서 상속됨 WebControl)
TagName

컨트롤 태그의 이름을 가져옵니다. 이 속성은 주로 컨트롤 개발자에 의해 사용 됩니다.

(다음에서 상속됨 WebControl)
TemplateControl

이 컨트롤을 포함하는 템플릿에 대한 참조를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
TemplateSourceDirectory

현재 서버 컨트롤을 Page 포함하는 가상 디렉터리를 가져옵니다 UserControl .

(다음에서 상속됨 Control)
ToolTip

마우스 포인터가 웹 서버 컨트롤을 가리키면 표시되는 텍스트를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)
UniqueID

서버 컨트롤에 대해 계층적으로 정규화된 고유 식별자를 가져옵니다.

(다음에서 상속됨 Control)
ValidateRequestMode

컨트롤이 잠재적으로 위험한 값에 대해 브라우저에서 클라이언트 입력을 확인하는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
VerticalAlign

행에 있는 내용의 세로 맞춤을 가져오거나 설정합니다.

(다음에서 상속됨 TableRow)
ViewState

동일한 페이지에 대한 여러 요청에서 서버 컨트롤의 뷰 상태를 저장하고 복원할 수 있는 상태 정보 사전을 가져옵니다.

(다음에서 상속됨 Control)
ViewStateIgnoresCase

개체가 대/소문자를 구분하지 않는지 여부를 StateBag 나타내는 값을 가져옵니다.

(다음에서 상속됨 Control)
ViewStateMode

이 컨트롤의 뷰 상태 모드를 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Visible

서버 컨트롤이 페이지에서 UI로 렌더링되는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 Control)
Width

웹 서버 컨트롤의 너비를 가져오거나 설정합니다.

(다음에서 상속됨 WebControl)

메서드

Name Description
AddAttributesToRender(HtmlTextWriter)

지정된 에 렌더링해야 하는 HTML 특성 및 스타일을 추가합니다 HtmlTextWriterTag. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
AddedControl(Control, Int32)

자식 컨트롤이 개체 컬렉션 Control 에 추가된 Controls 후 호출됩니다.

(다음에서 상속됨 Control)
AddParsedSubObject(Object)

XML 또는 HTML 요소가 구문 분석되었음을 서버 컨트롤에 알리고 해당 요소를 서버 컨트롤의 ControlCollection 개체에 추가합니다.

(다음에서 상속됨 Control)
ApplyStyle(Style)

지정한 스타일의 비어 있지 않은 요소를 웹 컨트롤에 복사하여 컨트롤의 기존 스타일 요소를 덮어씁니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
ApplyStyleSheetSkin(Page)

페이지 스타일시트에 정의된 스타일 속성을 컨트롤에 적용합니다.

(다음에서 상속됨 Control)
BeginRenderTracing(TextWriter, Object)

렌더링 데이터의 디자인 타임 추적을 시작합니다.

(다음에서 상속됨 Control)
BuildProfileTree(String, Boolean)

서버 컨트롤에 대한 정보를 수집하여 Trace 페이지에 대해 추적을 사용하도록 설정할 때 표시할 속성에 전달합니다.

(다음에서 상속됨 Control)
ClearCachedClientID()

캐시된 ClientID 값을 .로 null설정합니다.

(다음에서 상속됨 Control)
ClearChildControlState()

서버 컨트롤의 자식 컨트롤에 대한 컨트롤 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearChildState()

모든 서버 컨트롤의 자식 컨트롤에 대한 뷰 상태 및 컨트롤 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearChildViewState()

모든 서버 컨트롤의 자식 컨트롤에 대한 뷰 상태 정보를 삭제합니다.

(다음에서 상속됨 Control)
ClearEffectiveClientIDMode()

ClientIDMode 현재 컨트롤 인스턴스 및 자식 Inherit컨트롤의 속성을 .로 설정합니다.

(다음에서 상속됨 Control)
CopyBaseAttributes(WebControl)

개체에 의해 Style 캡슐화되지 않은 속성을 지정된 웹 서버 컨트롤에서 이 메서드가 호출된 웹 서버 컨트롤로 복사합니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
CreateChildControls()

컴퍼지션 기반 구현을 사용하는 서버 컨트롤에 알리기 위해 ASP.NET 페이지 프레임워크에서 호출하여 다시 게시 또는 렌더링 준비에 포함된 자식 컨트롤을 만듭니다.

(다음에서 상속됨 Control)
CreateControlCollection()

컨트롤에 대한 새 ControlCollection 개체를 TableRow 만듭니다.

(다음에서 상속됨 TableRow)
CreateControlStyle()

컨트롤에 TableItemStyle 대한 개체를 TableRow 만듭니다.

(다음에서 상속됨 TableRow)
DataBind()

호출된 서버 컨트롤 및 모든 자식 컨트롤에 데이터 원본을 바인딩합니다.

(다음에서 상속됨 Control)
DataBind(Boolean)

이벤트를 발생시키는 옵션을 사용하여 호출된 서버 컨트롤 및 모든 자식 컨트롤에 데이터 원본을 DataBinding 바인딩합니다.

(다음에서 상속됨 Control)
DataBindChildren()

데이터 원본을 서버 컨트롤의 자식 컨트롤에 바인딩합니다.

(다음에서 상속됨 Control)
Dispose()

서버 컨트롤이 메모리에서 해제되기 전에 최종 정리를 수행할 수 있도록 합니다.

(다음에서 상속됨 Control)
EndRenderTracing(TextWriter, Object)

렌더링 데이터의 디자인 타임 추적을 종료합니다.

(다음에서 상속됨 Control)
EnsureChildControls()

서버 컨트롤에 자식 컨트롤이 포함되어 있는지 여부를 확인합니다. 그렇지 않으면 자식 컨트롤을 만듭니다.

(다음에서 상속됨 Control)
EnsureID()

할당된 식별자가 없는 컨트롤에 대한 식별자를 만듭니다.

(다음에서 상속됨 Control)
Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
FindControl(String, Int32)

현재 명명 컨테이너에서 지정된 id 서버 컨트롤과 매개 변수에 지정된 pathOffset 정수를 검색하여 검색을 지원합니다. 이 버전의 메서드를 재정의 FindControl 해서는 안 됩니다.

(다음에서 상속됨 Control)
FindControl(String)

지정된 매개 변수를 사용하여 현재 명명 컨테이너에서 서버 컨트롤을 검색합니다 id .

(다음에서 상속됨 Control)
Focus()

입력 포커스를 컨트롤로 설정합니다.

(다음에서 상속됨 Control)
GetDesignModeState()

컨트롤의 디자인 타임 데이터를 가져옵니다.

(다음에서 상속됨 Control)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetRouteUrl(Object)

경로 매개 변수 집합에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(RouteValueDictionary)

경로 매개 변수 집합에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(String, Object)

경로 매개 변수 집합 및 경로 이름에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetRouteUrl(String, RouteValueDictionary)

경로 매개 변수 집합 및 경로 이름에 해당하는 URL을 가져옵니다.

(다음에서 상속됨 Control)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
GetUniqueIDRelativeTo(Control)

지정된 컨트롤 속성의 UniqueID 접두사 부분을 반환합니다.

(다음에서 상속됨 Control)
HasControls()

서버 컨트롤에 자식 컨트롤이 포함되어 있는지 여부를 확인합니다.

(다음에서 상속됨 Control)
HasEvents()

이벤트가 컨트롤에 대해 등록되었는지 또는 자식 컨트롤에 대해 등록되었는지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Control)
IsLiteralContent()

서버 컨트롤에 리터럴 콘텐츠만 있는지 여부를 확인합니다.

(다음에서 상속됨 Control)
LoadControlState(Object)

메서드에서 저장한 이전 페이지 요청에서 컨트롤 상태 정보를 복원합니다 SaveControlState() .

(다음에서 상속됨 Control)
LoadViewState(Object)

메서드와 함께 저장된 이전 요청에서 뷰 상태 정보를 복원합니다 SaveViewState() .

(다음에서 상속됨 WebControl)
MapPathSecure(String)

가상 경로(절대 경로 또는 상대 경로)가 매핑되는 실제 경로를 검색합니다.

(다음에서 상속됨 Control)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MergeStyle(Style)

지정한 스타일의 비어 있지 않은 요소를 웹 컨트롤에 복사하지만 컨트롤의 기존 스타일 요소를 덮어쓰지는 않습니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
OnBubbleEvent(Object, EventArgs)

페이지의 ASP.NET 서버 컨트롤 계층 구조에 이벤트를 전달할지 여부를 결정합니다.

OnDataBinding(EventArgs)

DataBinding 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OnInit(EventArgs)

Init 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OnLoad(EventArgs)

Load 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OnPreRender(EventArgs)

PreRender 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OnUnload(EventArgs)

Unload 이벤트를 발생시킵니다.

(다음에서 상속됨 Control)
OpenFile(String)

파일을 읽는 Stream 데 사용되는 파일을 가져옵니다.

(다음에서 상속됨 Control)
RaiseBubbleEvent(Object, EventArgs)

이벤트의 원본과 해당 정보를 컨트롤의 부모에 할당합니다.

(다음에서 상속됨 Control)
RemovedControl(Control)

자식 컨트롤이 개체 컬렉션 Control 에서 Controls 제거된 후 호출됩니다.

(다음에서 상속됨 Control)
Render(HtmlTextWriter)

컨트롤을 지정된 HTML 기록기에 렌더링합니다.

(다음에서 상속됨 WebControl)
RenderBeginTag(HtmlTextWriter)

컨트롤의 HTML 여는 태그를 지정된 작성기에 렌더링합니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
RenderChildren(HtmlTextWriter)

서버 컨트롤의 자식 콘텐츠를 제공된 HtmlTextWriter 개체에 출력하여 클라이언트에서 렌더링할 콘텐츠를 씁니다.

(다음에서 상속됨 Control)
RenderContents(HtmlTextWriter)

컨트롤의 내용을 지정된 작성기에 렌더링합니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
RenderControl(HtmlTextWriter, ControlAdapter)

제공 ControlAdapter 된 개체를 사용하여 제공된 HtmlTextWriter 개체에 서버 컨트롤 콘텐츠를 출력합니다.

(다음에서 상속됨 Control)
RenderControl(HtmlTextWriter)

서버 컨트롤 콘텐츠를 제공된 HtmlTextWriter 개체에 출력하고 추적을 사용하는 경우 컨트롤에 대한 추적 정보를 저장합니다.

(다음에서 상속됨 Control)
RenderEndTag(HtmlTextWriter)

컨트롤의 HTML 닫는 태그를 지정된 작성기에 렌더링합니다. 이 메서드는 주로 컨트롤 개발자가 사용합니다.

(다음에서 상속됨 WebControl)
ResolveAdapter()

지정된 컨트롤을 렌더링하는 컨트롤 어댑터를 가져옵니다.

(다음에서 상속됨 Control)
ResolveClientUrl(String)

브라우저에서 사용할 수 있는 URL을 가져옵니다.

(다음에서 상속됨 Control)
ResolveUrl(String)

URL을 요청 클라이언트에서 사용할 수 있는 URL로 변환합니다.

(다음에서 상속됨 Control)
SaveControlState()

페이지가 서버에 다시 게시된 이후 발생한 모든 서버 제어 상태 변경 내용을 저장합니다.

(다음에서 상속됨 Control)
SaveViewState()

메서드가 호출된 후 TrackViewState() 수정된 상태를 저장합니다.

(다음에서 상속됨 WebControl)
SetDesignModeState(IDictionary)

컨트롤의 디자인 타임 데이터를 설정합니다.

(다음에서 상속됨 Control)
SetRenderMethodDelegate(RenderMethod)

이벤트 처리기 대리자를 할당하여 서버 컨트롤과 해당 콘텐츠를 부모 컨트롤에 렌더링합니다.

(다음에서 상속됨 Control)
SetTraceData(Object, Object, Object)

추적된 개체, 추적 데이터 키 및 추적 데이터 값을 사용하여 렌더링 데이터의 디자인 타임 추적을 위한 추적 데이터를 설정합니다.

(다음에서 상속됨 Control)
SetTraceData(Object, Object)

추적 데이터 키 및 추적 데이터 값을 사용하여 렌더링 데이터의 디자인 타임 추적을 위한 추적 데이터를 설정합니다.

(다음에서 상속됨 Control)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)
TrackViewState()

개체의 속성에 저장할 수 있도록 컨트롤이 뷰 상태의 ViewState 변경 내용을 추적하도록 합니다.

(다음에서 상속됨 WebControl)

이벤트

Name Description
DataBinding

서버 컨트롤이 데이터 원본에 바인딩할 때 발생합니다.

(다음에서 상속됨 Control)
Disposed

ASP.NET 페이지가 요청될 때 서버 컨트롤 수명 주기의 마지막 단계인 메모리에서 서버 컨트롤이 해제될 때 발생합니다.

(다음에서 상속됨 Control)
Init

서버 컨트롤이 초기화될 때 발생하며 이는 수명 주기의 첫 번째 단계입니다.

(다음에서 상속됨 Control)
Load

서버 컨트롤이 개체에 Page 로드될 때 발생합니다.

(다음에서 상속됨 Control)
PreRender

개체를 Control 로드한 후 렌더링하기 전에 발생합니다.

(다음에서 상속됨 Control)
Unload

서버 컨트롤이 메모리에서 언로드될 때 발생합니다.

(다음에서 상속됨 Control)

명시적 인터페이스 구현

Name Description
IAttributeAccessor.GetAttribute(String)

지정된 이름을 가진 웹 컨트롤의 특성을 가져옵니다.

(다음에서 상속됨 WebControl)
IAttributeAccessor.SetAttribute(String, String)

웹 컨트롤의 특성을 지정된 이름과 값으로 설정합니다.

(다음에서 상속됨 WebControl)
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)

확장명 메서드

Name Description
FindDataSourceControl(Control)

지정된 컨트롤의 데이터 컨트롤과 연결된 데이터 원본을 반환합니다.

FindFieldTemplate(Control, String)

지정된 컨트롤의 명명 컨테이너에서 지정된 열에 대한 필드 템플릿을 반환합니다.

FindMetaTable(Control)

포함하는 데이터 컨트롤에 대한 충족 가능한 개체를 반환합니다.

적용 대상

추가 정보