Ali, Thanks for the response. Actually I want to avoid the postback. As the user is typing in the textbox I want some javascript function to display the results from the html and NOT postback.
Thanks, Bob --- In [email protected], "Ali Husain" <[EMAIL PROTECTED]> wrote: > > Bob, > > > > Just a thought. Wouldn't that be a little inefficient. Anytime the user > changes the text box it would have to post back to the server to see if > the new text matches the database. Also everytime you do a postback in > ASP.NET the whole screen flashes. > > > > If you still have to do it, this it what I would do: > > > > 1) Set the AutoPostBack property of the textbox to true > > 2) Create a Public Subroutine to do your database query > > 3) In the html part of the page set the onclick = "yoursubname()" > > > > Everytime you type a letter the JS should fire the yoursubname() > function > > > > Havent tried the code for this one yet... but it seems like it will > work..... > > > > Thanks, > > > > Ali > > > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of David Sapp > Sent: Monday, October 31, 2005 4:13 PM > To: [email protected] > Subject: Re: [AspNetAnyQuestionIsOk] Search repeater using javascript > > > > Ok, upon second reading of your post I think I understand what you want. > It seems you want the following (correct me if I'm wrong): there will > be a textbox at the top of the page outside of the repeater and when the > user types in a character the repeater will show the records that match > that character (of course based on whatever repeater field you are using > to perform the search). Is this right? If yes, then I can look into > it. > > bh0526 <[EMAIL PROTECTED]> wrote:Hi all, > > Hopefully someone can help me out here or point me in the right > direction. I have a web page that contains a repeater. I bind the > repeater to a data source when the page loads. The user wants to be > able to start typing in a textbox and have the repeater display the > results as they are typing. Obviously, this has to be done on the > client-side. I know there are various keypress events that can be > captured. But I am pretty weak in javascript. Has anyone done this > or know of a web site where I can see an example? > > Thanks, > Bob > > > > > > > > > SPONSORED LINKS > Basic programming language Computer programming languages Programming > languages Java programming language > > --------------------------------- > YAHOO! GROUPS LINKS > > > Visit your group "AspNetAnyQuestionIsOk" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > --------------------------------- > > > > > > --------------------------------- > Yahoo! FareChase - Search multiple travel sites in one click. > > [Non-text portions of this message have been removed] > > > > > ________________________________ > > YAHOO! GROUPS LINKS > > > > * Visit your group "AspNetAnyQuestionIsOk > <http://groups.yahoo.com/group/AspNetAnyQuestionIsOk> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] subject=Unsubs > cribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > ________________________________ > > > > [Non-text portions of this message have been removed] > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
