Click here to Skip to main content
13,049,172 members (64,461 online)
Rate this:
Please Sign up or sign in to vote.
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 22-Oct-12 21:45pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can use Server Side event TextChanged of Textbox.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100