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

Dim instance As DetailsView Dim value As Boolean value = instance.EnablePagingCallbacks instance.EnablePagingCallbacks = value
/** @property */ public boolean get_EnablePagingCallbacks () /** @property */ public void set_EnablePagingCallbacks (boolean value)
public function get EnablePagingCallbacks () : boolean public function set EnablePagingCallbacks (value : boolean)
クライアント側のコールバック関数を使用してページング操作を実行する場合は true。それ以外の場合は false。既定値は false です。

クライアント側のコールバック関数を使用してページング操作を実行するかどうかを指定するには、EnablePagingCallbacks プロパティを使用します。この機能が有効に設定されている場合、ページング操作はコールバック関数を使用して実行されるため、ページをサーバーにポストバックする必要がありません。
![]() |
---|
クライアント側でのページング機能は、Microsoft Internet Explorer 5.5 以降および Netscape 6.0 以降でのみサポートされています。 |

EnablePagingCallbacks プロパティを使用して、クライアント側のコールバック関数を使用してページング操作を実行できるようにする方法のコード例を次に示します。
<%@ Page language="VB" %> <html> <body> <form id="Form1" runat="server"> <h3>DetailsView EnablePagingCallbacks Example</h3> <asp:detailsview id="CustomerDetailView" datasourceid="DetailsViewSource" autogeneraterows="true" allowpaging="true" enablepagingcallbacks="true" runat="server"> <fieldheaderstyle backcolor="Navy" forecolor="White"/> <pagersettings mode="NextPreviousFirstLast" firstpagetext="First" lastpagetext="Last" nextpagetext="Next" previouspagetext="Prev"/> <pagerstyle forecolor="White" backcolor="Blue" font-names="Arial" font-size="8" /> </asp:detailsview> <!-- 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="DetailsViewSource" runat="server" ConnectionString= "<%$ ConnectionStrings:NorthWindConnectionString%>" InsertCommand="INSERT INTO [Customers]([CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country]) VALUES (@CustomerID, @CompanyName, @Address, @City, @PostalCode, @Country)" SelectCommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]"> </asp:SqlDataSource> </form> </body> </html>
<%@ Page language="C#" %> <html> <body> <form id="Form1" runat="server"> <h3>DetailsView EnablePagingCallbacks Example</h3> <asp:detailsview id="CustomerDetailView" datasourceid="DetailsViewSource" autogeneraterows="true" allowpaging="true" enablepagingcallbacks="true" runat="server"> <fieldheaderstyle backcolor="Navy" forecolor="White"/> <pagersettings mode="NextPreviousFirstLast" firstpagetext="First" lastpagetext="Last" nextpagetext="Next" previouspagetext="Prev"/> <pagerstyle forecolor="White" backcolor="Blue" font-names="Arial" font-size="8" /> </asp:detailsview> <!-- 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="DetailsViewSource" runat="server" ConnectionString= "<%$ ConnectionStrings:NorthWindConnectionString%>" InsertCommand="INSERT INTO [Customers]([CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country]) VALUES (@CustomerID, @CompanyName, @Address, @City, @PostalCode, @Country)" SelectCommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]"> </asp:SqlDataSource> </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に収録されているすべての辞書からDetailsView.EnablePagingCallbacks プロパティを検索する場合は、下記のリンクをクリックしてください。

- DetailsView.EnablePagingCallbacks プロパティのページへのリンク