public class TestWindow : CSharpScript
{
public string Content { get; set; }
public int Count { get; private set; }
public override void Invoke()
{
Content = "Hello World!";
Count = 15;
}
}
<html>
<head>
<title>OAuth</title>
</head>
<body>
<script>
let str = '<% Response.Write(Content); %>';
console.log(str);
</script>
<%
for (int i = 0; i < Count; i++)
{
%>
<div><% Response.Write("Hello World!"); %></div>
<%
}
%>
</body>
</html>