Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert spaces to + for mapquest

Status
Not open for further replies.

bjzielinski

IS-IT--Management
Nov 8, 2001
93
US
I have a database of addresses, each field separate (street, city, state, etc). I want to create a link to map an address in mapquest. The syntax is fairly straight forward, except spaces must be converted to +'s. IE "1600 Pennsylvania Ave" must read "&address=1600+Pennsylvania+Ave" I thought about looping through each character and replacing the space with a +, but is there an easier way? Bill Zielinski
bzielinski@co.midland.mi.us
County of Midland, Michigan
 
Yes there is a way.
str="My string here!"
parsedStr=Server.UrlEncode(str) for encoding Browser style ________
George, M
 
That was too easy. Thanks! Bill Zielinski
bzielinski@co.midland.mi.us
County of Midland, Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top