I want to create my own “code behind” as pages, so that I can have HTML in the HTML file and code in the cs file, but be able to have Intellesense for tokens in the HTML file. (I know what the .NET page class does, but I want to have something much easier)
EG: in the .html file:
<%@ Directive classname="HTMLSnippet" %>
<html>
<body>
<div>[%message%]
</body>
</html>
and in the .cs file
public class MyClass : HTMLSnippet
{
public class MyClass () {
snippet.message = "message goes here"
}
}
So my question is how to make the HTMLSnippet class so that its members are automatically created and, in particular, displayed in Intellesense, as I add tokens to the .html file?
, .net , designer.cs , , , , Intellesense. !
, , HTML- . . , VS, , .html, .cs .