Link to home
Create AccountLog in
Avatar of Dovberman
DovbermanFlag for United States of America

asked on

How to add the ApplicationName to Web.Config

How do I add the Application Name to the web.config file and get the Application Name in code?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of s_chilkury
s_chilkury
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ConfigurationSettings has been depreciated instead use ConfigurationManager.AppSettings[]
Avatar of Dovberman

ASKER

s chilkury: There is an appSettings section in my web.config file. The appName is returned as you suggested.

There is no ConfigurationManager section in my web.config file.

dale burrell : Please show example of a ConfigurationManager section to receive partial points.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
dale_burrell,

Yes, that works.

Thanks
Thanks for your help.