asp.net mvc 4 - Storing HttpClient BaseAddress on web.config -


i want store httpclient baseaddress uri on asp.net mvc4 project web.config.

in section correct place add configuration?

add in web.config

<configuration>   <appsettings>     <add key="baseaddress" value="http://xxx/"/>   </appsettings> </configuration> 

get value this:

configurationmanager.appsettings["baseaddress"] 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -