I am trying to create a module using Razor that connects to a database and retrieves two columns and displays them as a dropdown list. I create the module and when i place it on a page i get an error:
"Error: TestModule is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: <site>: error CS1061: 'DotNetNuke.Web.Razor.Helpers.HtmlHelper' does not contain a definition for 'DropDownList' and no extension method 'DropDownList' accepting a first argument of type 'DotNetNuke.Web.Razor.Helpers.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) ---> System.Web.HttpCompileException: "
There seems to be an issue with me trying to call '@Html.DropDownList("Station", Stationdropdownlistdata)'. Is there a directive or assembly i need to call in my cshtml file to use that ability? Thanks in advance.