How to Create Profile Property through Coding in DNN

How to Create Profile Property through Coding in DNN

//Here 'Level' is the name of profile property if (DotNetNuke.Entities.Profile.ProfileController.GetPropertyDefinitionByName(this.PortalId, "Level") == null){DotNetNuke.Entities.Profile.ProfileController.AddPropertyDefinition(new DotNetNuke.Entities.Profile.ProfilePropertyDefinition(this.PortalId){PropertyName =…
Use of Module Setting Value in DotnetNuke (DNN) using C#

Use of Module Setting Value in DotnetNuke (DNN) using C#

//Controls for configuration page to set the value DotNetNuke.Entities.Modules.ModuleController mctrl = new DotNetNuke.Entities.Modules.ModuleController(); Hashtable HT = new Hashtable(); TabInfo objtabinfo = new TabInfo(); TabController objtabcontroller = new TabController(); //Call this function on button to save module setting in cofiguration page private void ModuleConfigurationSetting() { HT = mctrl.GetModuleSettings(this.ModuleId); mctrl.UpdateModuleSetting(this.ModuleId, "Address", txtAdd.Text); mctrl.UpdateModuleSetting(this.ModuleId, "Tab_Name", ddlLoginPage.SelectedItem.Text); Response.Redirect(Globals.NavigateURL());