Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using repeater control list with 3 columns(Name, Description, Date). I need to filter the list based on a keyword entered in a textbox for description dynamically without postback.
I am able to filter the list when user enter a word in textbox and presses enter key or tab key, but for this solution postback happens.
Is there a way that poatback does not happen and the list gets updated dynamically when user keeps typing any character in textbox?
Posted

1 solution

mayur narsale:
I am able to filter the list when user enter a word in textbox and presses enter key or tab key, but for this solution postback happens.
Is there a way that postback does not happen and the list gets updated dynamically when user keeps typing any character in textbox?


First point is confusing. You don't want postback at all, or you want AsyncPostBack. You can use UpdatePanel.

For the second point, you need to set AutoPostBack 'true' for the TextBox and handle TextChanged event.
https://msdn.microsoft.com/en-us/library/2589b44c(v=vs.85).aspx[^]
 
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