PagerSettings.PreviousPageText プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As PagerSettings Dim value As String value = instance.PreviousPageText instance.PreviousPageText = value
/** @property */ public String get_PreviousPageText () /** @property */ public void set_PreviousPageText (String value)
public function get PreviousPageText () : String public function set PreviousPageText (value : String)
前のページへ移動するボタンに表示されるテキスト。既定値は "<" で、"<" と表示されます。

Mode プロパティが NextPreviousFirstLast値 または NextPrevious 値に設定されている場合は、PreviousPageText プロパティを使用して、前のページへ移動するボタンに表示するテキストを指定します。
![]() |
---|
PreviousPageText プロパティの代わりに PreviousPageImageUrl プロパティを設定して、前のページへ移動するボタンのイメージを表示することもできます。PreviousPageImageUrl プロパティと PreviousPageText プロパティの両方が設定されている場合、イメージの代替テキストとして動作する PreviousPageText プロパティでイメージが表示されます。ツールヒントをサポートしているブラウザの場合、このテキストは対応するボタンのツールヒントとしても表示されます。 |

PreviousPageText プロパティを使用して、GridView コントロールのページャ行に表示する、前のページへ移動するボタンのテキストをカスタマイズする方法を次のコード例に示します。
<%@ Page language="VB" %> <html> <body> <form runat="server"> <h3>PagerSetting Example</h3> <asp:gridview id="CustomerGridView" datasourceid="CustomerDataSource" autogeneratecolumns="true" datakeynames="CustomerID" allowpaging="true" runat="server"> <pagersettings mode="NextPreviousFirstLast" firstpagetext="First" lastpagetext="Last" nextpagetext="Next" previouspagetext="Prev" 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="C#" %> <html> <body> <form runat="server"> <h3>PagerSetting Example</h3> <asp:gridview id="CustomerGridView" datasourceid="CustomerDataSource" autogeneratecolumns="true" datakeynames="CustomerID" allowpaging="true" runat="server"> <pagersettings mode="NextPreviousFirstLast" firstpagetext="First" lastpagetext="Last" nextpagetext="Next" previouspagetext="Prev" 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>

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PagerSettings クラス
PagerSettings メンバ
System.Web.UI.WebControls 名前空間
PagerSettings.Mode プロパティ
PagerButtons 列挙体
PagerSettings.FirstPageImageUrl プロパティ
PagerSettings.FirstPageText プロパティ
PagerSettings.LastPageImageUrl プロパティ
PagerSettings.LastPageText プロパティ
PagerSettings.NextPageImageUrl プロパティ
PagerSettings.NextPageText プロパティ
PagerSettings.PreviousPageImageUrl プロパティ
Weblioに収録されているすべての辞書からPagerSettings.PreviousPageText プロパティを検索する場合は、下記のリンクをクリックしてください。

- PagerSettings.PreviousPageText プロパティのページへのリンク