We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,414 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

address query

hi there,
i have a question with the address text box. i am coding in C#. at first user enters the counrty. and then he enters the zip code. the state should pop up. for eg: if 60333 comes the relevant state should come up in the textbox called state how can i do this

please give me a tutorial
i don't know whether it is done in the code or with the sql code.

2
Contributors
2
Replies
2 Days
Discussion Span
1 Year Ago
Last Updated
3
Views
judithSampathwa
Posting Pro in Training
453 posts since May 2010
Reputation Points: 8
Solved Threads: 0
Skill Endorsements: 0

Depends how you want to store the zip codes and states. If you intend to track down and store the list yourself you will probably want to place it in a database. However, there are web services out there you could query with the zip code and get back the state.
If the zip codes are all the same length (5 charaters like the one above) you can include code to check when the zip code text == 5 and then call the code to access the database or web service. You will want to AJAX it too, I personally hate web pages that auto reload because of some obscure action I have done.

hericles
Veteran Poster
1,065 posts since Nov 2007
Reputation Points: 156
Solved Threads: 228
Skill Endorsements: 9

Depends how you want to store the zip codes and states. If you intend to track down and store the list yourself you will probably want to place it in a database. However, there are web services out there you could query with the zip code and get back the state.
If the zip codes are all the same length (5 charaters like the one above) you can include code to check when the zip code text == 5 and then call the code to access the database or web service. You will want to AJAX it too, I personally hate web pages that auto reload because of some obscure action I have done.

HI
i am trying to create a interface in windows desktop application. can i use ajax still. can i use web services for this??

thanks

judithSampathwa
Posting Pro in Training
453 posts since May 2010
Reputation Points: 8
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0559 seconds using 2.63MB