Click here to Skip to main content
15,923,120 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,

I have a project i need Search on my webform.

I took only textbox and Gridview no need of search button, I have a large database and already i haved filled the data in gridview.

NOW i need to search the data using AJAX TEXTBOX. when the user types something in textbox it should displays in gridview below.


Please any one can give me the perfect solution for this.

Thanks,
Posted

1 solution

There are multiple ways to do it. Had you just asked for suggestions based on the typed data then AJAX AutoComplete control[^] would have fit in good.

Now, since you need the data related to typed letters in the gridview, I would suggest you to use XMLHttpRequest (traditional AJAX). This would give you the ability to pass on the typed data to server and then get back gridview data from server based on the typed data.

Look here for XMLHttpRequest:
XMLHttpRequest Object[^]
XMLHTTPRequest with Sample[^]
Using the XML HTTP Request object[^]
Client Side Validation Using the XMLHTTPRequest Object[^]
 
Share this answer
 

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