Is it possible to call a function in Global.asax from a class libray project which is present in the same solution?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To access the app settings in web.config from your code, just add the following code:
It assumes, your web.config contains the following section:
If the
System.Configurationnamespace is not known, then you have to add a reference toSystem.Configuration.