Using of ApplicationSettings in markup code
- by Dirk
I want to use ApplicationSettings in the markup code of an ASP.NET Web Application. Inspired by code behind this was my first try:
<%= My.Settings.MyApplicationSetting %>
No success.
I ended up with this lengthy statement
<%= Global.MyRootNameSpace.My.MySettings.Default.MyApplicationSetting %>
I can’t believe that this is the best solution. Isn’t it?