Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB ASP.NET Javascript Gridview , +
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 22:45pm
ownfrog128

1 solution

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

Solution 1

You can use Server Side event TextChanged of Textbox.
  Permalink  
Comments
ownfrog at 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
0 OriginalGriff 480
1 Maciej Los 330
2 Richard MacCutchan 225
3 BillWoodruff 185
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 23 Oct 2012
Copyright © CodeProject, 1999-2014
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