Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi @ all

I'm searching for a solution to do a DataBind of my GridView when I entered a sign in my textbox (onkeypress).

The whole thing, should be a search like google.
When I enter something the gridview should updated his datasource with the text in the textbox and display the "filtered" datarecords.

I have tried to do a postback in javascript onkeypressd, but then my textbox looses the text and the focus.
An other thing i tried is to call a server-side function from client-side, but on this way i can't bind the gridview.

How would you solve my problem?

Is there any possibility to databind gridview with the sqldatasource from client-side?

Thanks for your help!
Posted

1 solution

You can use Server Side event TextChanged of Textbox.
 
Share this answer
 
Comments
ownfrog 23-Oct-12 7:42am    
sorry you dont understand me, i want to bind the grid by each "keypress" not at the TextChanged event.
So when i'm writing somthing the grid updates his data width the thext i'm writing always i press a key!

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