Wednesday, March 21, 2012

Ajax address lookup

Hi everyone,

The need has arisen to allow the users to query a database containing all the names of the contacts.

I was thinking that this would be an excellent task for ajax.

The primary requirement of the operation is to allow the user to enter the keystrokes

of the person they are looking for, and have the list of possible records displayed

in a grid, and as the users types in more letters, the list gets smaller and smaller.

A round trip to the database as the old school methods would allow simply

is not acceptable any more...

I have setup a web service to return a dataset based on the field and text that is entered

in the form, the problem i am having is actually using ajax to call the web service and

update the datagrid with the results from the web service call.

does anyone have a sample or know of a website that has a sample for this operation??

thanks

tony

The autocomplete extender does that.

http://ajax.asp.net


Thought this might help you all out there;

First, Some good resources to test with;

USA Zip code Information[Get State Code,City,Area Code,Time Zone,Zip Code ]

http://www.webservicex.net/uszip.asmx?wsdl

------------------------------------------

USA Zip code Information
[Get State Code,City,Area Code,Time Zone,Zip Code ]
http://www.webservicex.net/uszip.asmx?wsdl

------------------------------------------

I have to dig up my generic sample code then I'll post it here as well but, it's easier to write the code than to find the free services.


Yes, please post some sample code. I'm very interested in an exmple showing how to make use of that particular feature from them.

No comments:

Post a Comment