How to highlight search results in gridview using asp.net?
问题 I am using a search box to sort my gridview according to the search text. I want to highlight the matching text in the gridview entered into the textbox. This is my aspx page- <table> <tr> <td> <asp:TextBox ID="TextBox1" runat="server" Width="167px"> </asp:TextBox> </td> </tr> <tr> <td> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Submit" Width="116px" /> </td> </tr> <tr> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> </tr> </table> code behind public