Hello Amy,
You can use "server" code just about anywhere in a view, including in HTML helpers. Here's an example I made for you that shows three examples, and the result is attached below.
Regards,
Marin Bratanov
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.