This is the code:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Dynamicweb.Extensibility; using Dynamicweb; using System.Data; using KD.Modules.CompanySearch.Src; namespace CustomModules.KD.Modules.CompanySearch.Src { [AddInName("CompanySearch")] public class CSTemplater : Dynamicweb.ContentModule { public override string GetContent() { Dynamicweb.Templatev2.Template t = new Dynamicweb.Templatev2.Template("CompanySearch/Template.html"); Dynamicweb.Templatev2.Template branchOptions = t.GetLoop("BranchList"); Dynamicweb.Templatev2.Template locationOptions = t.GetLoop("LocationList"); foreach (var location in Location.GetLocations()) { locationOptions.SetTag("LocationText", location.Name); locationOptions.SetTag("LocationValue", location.ID); locationOptions.CommitLoop(); } foreach (var branch in Branch.GetBranchs()) { branchOptions.SetTag("BranchText", branch.Name); branchOptions.SetTag("BranchValue", branch.ID); branchOptions.CommitLoop(); } t.GenerateTemplate(false); return t.Output(); } } } What is wrong with that? It worked before??