Mike,
The issue is as I initially stated, plus another one I discovered. I created your control in a v10 instance and found these issues:
Replace:
using CMS.PortalControls;
With
using CMS.PortalEngine.Web.UI;
Fix your property names
public string DepartmentNameVar{}
MeetingLink.Text = "Schedule a Meeting with " + DepartmentName + "";
Notice you're tying to assign the property DepartmentName
which doesn't exist. Although DepartmentNameVar
does.
Lastly, you may want to actually build your project in Visual Studio and you'll find these errors with improper using
statements. You can have all the incorrect code you want on your website but until you actually build it or use the code you have incorrect references to, it won't break. Plus using a tool like Visual Studio will allow you to visually see errors immediately and avoid issues like this.