Submit Post - Article - Ask a Question - Ask an Interview Question - Submit Useful Links

How to AppSettings from web.config in Class Libray Project

How to AppSettings  from web.config in Class Libray Project

Solution:

 public static string APIBaseUrl = WebConfigurationManager.AppSettings["APIBaseUrl"].ToString();// WebConfigurationManager.AppSettings["APIBaseUrl"].ToString(); // change this value from root web.config of WebUI

 

with the help above few lines we can  appsettings value in Class Libray project.

 

By      06-Dec-2023    2

Solutions


Your Answer

10135
Submit Post - Article - Ask a Question - Ask an Interview Question - Submit Useful Links