I have a old site that I want to use something like HTML helpers to generate special HTML(in this case complexed buttons). I know how this works in ASP.NET MVC but how can I
Put Helpers.cs in your App_Code folder then you can call it like so from your aspx file:
Helpers.cs
App_Code
aspx
<div class="example> <%= Helpers.Label1("some", "text") %> </div>
At your solution. Add a special folder ASP.net Folder called code. Then paste your Helpers.cs file at it. Then you can access it.
ASP.net Folder