效果图:代: 复制代 代以下: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JqueryTableFilter.aspx.cs" Inherits="JqueryTableFilter" %> <br>$(function() { <br>$("#Text1").keyup(function() { <br>var filterText = $(this).val(); <br>$("#< %=GridView1.ClientID %> tr").not(":first").hide().filter(":contains('" filterText "')").show();; <br>})。キーアップ(); <br>}); <br> DataKeyNames="OrderID" DataSourceID="SqlDataSource1" horizontalAlign="Left" PageSize="50" > ; <列> SortExpression="OrderID" InsertVisible="False" /> SortExpression="顧客ID" /> SortExpression="従業員ID" /> SortExpression="OrderDate" /> SortExpression="RequiredDate" /> SortExpression="ShippedDate" /> SortExpression="ShipVia" /> SortExpression="Freight" /> 列> ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" SelectCommand="SELECT 上位 50 * FROM [Orders]">