How to AppSettings from web.config in Class Libray Project Ask Question
By       21-Oct-2024    1

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.

 

Solutions


10135
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM