PagerSettings.NextPageImageUrl 속성

정의

다음 페이지 단추에 대해 표시할 이미지의 URL을 가져오거나 설정합니다.

public:
 property System::String ^ NextPageImageUrl { System::String ^ get(); void set(System::String ^ value); };
public string NextPageImageUrl { get; set; }
member this.NextPageImageUrl : string with get, set
Public Property NextPageImageUrl As String

속성 값

String

다음 페이지 단추에 대해 표시할 이미지의 URL입니다. 기본값은 빈 문자열("")로, NextPageImageUrl이 설정되지 않았음을 나타냅니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 NextPageImageUrl 의 페이저 행의 다음 페이지 단추에 대 한 이미지를 표시 하는 속성을 GridView 컨트롤입니다.


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

<!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 runat="server">
    <title>PagerSetting Example</title>
</head>
<body>
    <form id="form1" runat="server">
        
      <h3>PagerSetting Example</h3>
                       
        <asp:gridview id="CustomerGridView"
          datasourceid="CustomerDataSource"
          autogeneratecolumns="true"
          datakeynames="CustomerID"  
          allowpaging="true"
          runat="server">
          
          <pagersettings mode="NextPreviousFirstLast"
            firstpageimageurl="~/Images/FirstPage.jpg"
            firstpagetext="First Page" 
            lastpageimageurl="~/Images/LastPage.jpg"
            lastpagetext="Last Page" 
            nextpageimageurl="~/Images/NextPage.jpg"
            nextpagetext="Next Page" 
            previouspageimageurl="~/Images/PreviousPage.jpg"
            previouspagetext="Previous Page"    
            position="Bottom"/> 
            
        </asp:gridview>
        
        <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="CustomerDataSource"
          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">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>PagerSetting Example</title>
</head>
<body>
    <form id="form1" runat="server">
        
      <h3>PagerSetting Example</h3>
                       
        <asp:gridview id="CustomerGridView"
          datasourceid="CustomerDataSource"
          autogeneratecolumns="true"
          datakeynames="CustomerID"  
          allowpaging="true"
          runat="server">
          
          <pagersettings mode="NextPreviousFirstLast"
            firstpageimageurl="~/Images/FirstPage.jpg"
            firstpagetext="First Page" 
            lastpageimageurl="~/Images/LastPage.jpg"
            lastpagetext="Last Page" 
            nextpageimageurl="~/Images/NextPage.jpg"
            nextpagetext="Next Page" 
            previouspageimageurl="~/Images/PreviousPage.jpg"
            previouspagetext="Previous Page"    
            position="Bottom"/> 
            
        </asp:gridview>
        
        <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="CustomerDataSource"
          selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]"
          connectionstring="<%$ ConnectionStrings:NorthWindConnectionString%>" 
          runat="server"/>
            
      </form>
  </body>
</html>

설명

경우는 Mode 속성을 NumericFirstLast 또는 NextPrevious 값을 사용 하 여는 NextPageImageUrl 다음 페이지 단추에 표시할 이미지에 URL을 지정 하는 속성.

참고

설정 하 여 다음 페이지 단추에 텍스트를 표시할 수 있습니다 합니다 NextPageText 속성 대신는 NextPageImageUrl 속성입니다. 경우는 NextPageImageUrlNextPageText 속성이 모두 설정, 이미지를 사용 하 여 표시 되는 NextPageText 이미지에 대 한 대체 텍스트를 역할을 하는 속성입니다. 도구 설명을 지 원하는 브라우저에서는이 텍스트는 해당 단추에 대 한 도구 설명으로도 표시 됩니다.

이 속성의 값은 뷰 상태에 저장 됩니다.

적용 대상

추가 정보