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

Dim instance As PagerSettings Dim value As String value = instance.FirstPageImageUrl instance.FirstPageImageUrl = value
/** @property */ public String get_FirstPageImageUrl () /** @property */ public void set_FirstPageImageUrl (String value)
public function get FirstPageImageUrl () : String public function set FirstPageImageUrl (value : String)
最初のページへ移動するボタン用に表示するイメージの URL。既定値は空の文字列 ("") です。FirstPageImageUrl が設定されていないことを示します。

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

FirstPageImageUrl プロパティを使用して、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" 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="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" 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>

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.FirstPageImageUrl プロパティを検索する場合は、下記のリンクをクリックしてください。

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