Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: How to use function inside of an attribute?

$
0
0

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]);
}


Viewing all articles
Browse latest Browse all 2540

Trending Articles