Can an ASP.NET Web.Config file have a dynamic value?

Viewed 339

Not really sure if i'm asking this correctly or not, but can a web.config file have a data driven value.? For example, in my mailSettings section, i have this

<system.net>
    <mailSettings>
      <smtp deliveryMethod="network" xdt:Transform="Replace">
        <network host="11.222.33.4" userName="MyUsername"  />                        
      </smtp>
    </mailSettings>
</system.net>

i would like the host="11.222.33.44" to come from a database.. Is this possible.?

2 Answers
Related