DNN

Snippets

27
public void CreateList()
{

	try
	{
		//create a placeholder entry - 
		const string listName = "InventoryReportingType";
		var listController = new ListController();
		var entry = new ListEntryInfo();
		{
			entry.DefinitionID = -1;
			entry.ParentID = 0;
			entry.Level = 0;
			entry.PortalID = this.PortalId;
			entry.ListName = listName;
			entry.Value = "USDA";
			entry.Text = "USDA";
			entry.SystemList = false;
                        entry.SortOrder = 1;
		}

		listController.AddListEntry(entry);


	}
	catch (Exception ex)
	{
		Exceptions.ProcessModuleLoadException(this, ex);
	}

}

Comments

There are currently no comments, be the first to post one!

Post Comment

Only registered users may post comments.