Click here to Skip to main content
15,065,044 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all..
I've implemented search function using ajax in i used scriptmanager,textbox,realtimesearchmonitor,updatepanel,gridview and sqldatasource..
All works fine..but i want the search function highlight the text in the gridview as what i type in the textbox..
Any ideas?
any add on on the cs-file?
My cs file is like this :

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Search
    public partial class _Default : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
Updated 25-Jul-10 19:05pm
Ankur\m/ 26-Jul-10 1:06am
There is no code in your cs file?!

1 solution

Have a look at this article:Implementing search in GridView and highlight results[^]

This looks like the thing you are trying to do. It should help you out.
pwtc222 26-Jul-10 23:47pm
Hi Sandeep..thanks for the reply..
i have checked the site before..but its using TemplateField in the GridView as you can see in the coding..
But i am using BoundField in the GridView,inside the UpdatePanel..
I have tried to modify my coding using the TemplateField but it seems to be not working,shows some error in my database (maybe because i have used the SqlDataSource)..
So i need some other way to do this highlighting..Any ideas?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900