c#代码
<% for (int i=0; i <8; i++) { %>
<font size="<%=i%>"> Welcome to ASP.NET </font> <br>
<% }%>
vb代码
<% Dim I As Integer
For I = 0 to 7 %>
<font size="<%=I%>"> Welcome to ASP.NET </font> <br>
<% Next %>
本文提供了使用C#和VB两种语言实现的ASP.NET示例代码,通过循环展示不同字体大小的欢迎信息,适用于初学者理解ASP.NET的基本用法。
c#代码
<% for (int i=0; i <8; i++) { %>
<font size="<%=i%>"> Welcome to ASP.NET </font> <br>
<% }%>
vb代码
<% Dim I As Integer
For I = 0 to 7 %>
<font size="<%=I%>"> Welcome to ASP.NET </font> <br>
<% Next %>

被折叠的 条评论
为什么被折叠?