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

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

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

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


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