Wow,

Yes, i know how set and get settings in web.config..But I was confused
about reading from web.config, and sending the key to the client.. But
at the end, I get it (I think). I'm reading from the web.config, and
registering the script to the page.

It was so simple, but I could not see!

Thanks anyway!

On 30 oct, 10:14, ProbablyMike <[email protected]> wrote:
> You should be able to find this easily on Google, but here you go.
>
> At the end of yourweb.config, just before </configuration> add:
> <appSettings>
>         <addkey="MapsAPIKey" value="yourkey"/>
> </appSettings>
>
> Then in your page load event do something like:
> dim mapsAPIKey as string
> mapsAPIKey =
> System.Web.Configuration.WebConfigurationManager.AppSettings
> ("MapsAPIKey").Trim()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to