Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to create a serach page ,i have one textbox for search and one gridview for bind all serached data ,but problem is that i am not able to bind gridview according text change .it only binding on when select text value, which is not perfect. can anyone help me ,thankyou
Posted
Comments
Thanks7872 13-Sep-13 1:38am    
Problem is not clear. Do you have problem with textchange event or with GridView binding or what?
TrushnaK 13-Sep-13 1:40am    
Add updatepanel before your gridview and close after grid ends.
then update that panel after binding data to gridview in text changed event.

1 solution

Add AutoPostback="true" for the textbox and on handler get the data based on text entered and bind to the grid.

Or else use update panel to wrap the grid and set the Trigger to the textbox's text changed event along with Autopostback as true
 
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