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

Dim instance As PagerSettings Dim value As String value = instance.FirstPageText instance.FirstPageText = value
/** @property */ public String get_FirstPageText () /** @property */ public void set_FirstPageText (String value)
最初のページへ移動するボタンに表示するテキスト。既定値は "<<" で、"<<" と表示されます。

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

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


Weblioに収録されているすべての辞書からPagerSettings.FirstPageText プロパティを検索する場合は、下記のリンクをクリックしてください。

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