That's the easiets way - to have it in web.config. It won't be difficult to have f.e. an inline C# function, that is just a few lines of code, something like that:
publicstatic XAttribute SetUrl(string appSettingName) {returnnew XAttribute("href", ConfigurationManager.AppSetting[appSettingName]); }