Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have make an application in C# to connect to FB,i have placed my appid and appsecret in web.config like

HTML
<facebookSettings appId="apid" appSecret="secid" />


I want to know how can i read them in C#?

Since they are not in appsettings section, but they are inside configuration section

Regards
Posted

1 solution

Try lookin at the MSDN article for this How to: Read application settings from Web.Config[^].

Hope this helps
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900