Computer Magic Logo
Save value

Monday, March 14, 2016

Published by Aristotelis Pitaridis

In order to save a value we use the SetValue static member function of the Settings class. The first parameter is the Application name, the second parameter is the Setting name and the third parameter is the value that we want to store.

@using CMUmbracoTools.Data
@{ 
    Settings.SetValue("MyApplicationName", "Username", "pitaridis");
}