blob: 0e7d014f08c0ff5425a360ac1fdc590b72e4226b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<%@ Control Name="MyApp.MyJbstControl" Language="JavaScript" %>
<script type="text/javascript">
/* initialization code block, executed only once as control is loaded */
this.generateValue = function() {
return new Date().toString();
};
</script>
<%!
/* initialization code block, executed only once as control is loaded */
/* alternate syntax to script block above */
this.myInitTime = this.generateValue();
%>
<%
/* data binding code block, executed each time as control is data bound */
this.myBindTime = this.generateValue();
%>
<%-- JBST Comment --%>
<span style="color:red"><%= this.myBindTime /* data binding expression */ %></span>
<span style="color:green"><%= this.myInitTime /* data binding expression */ %></span>
<!-- HTML Comment -->
<span style="color:blue"><%$ Resources: localizationKey %><%-- JBST globalization--%></span>
|