Sunday, 20 January 2019

How to get the value from web.config(if any value assign as static Key)

Web.Config File:

 <appSettings>
    <add key="DomainName" value="PW" />
    </appSettings>


Class.cs

WebConfigurationManager.AppSettings["DomainName"]


No comments:

Post a Comment

How to get the value from web.config(if any value assign as static Key)

Web.Config File:   <appSettings>     <add key="DomainName" value="PW" />     </appSettings> Cl...