For loop (Razor Syntex)

Ranjeet_8
Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 1207
Write this code on ASPX design page

// C#
<div>
<ul>
<% for (int loop = 1; loop < 16; loop++)
{ %>
<li>
<% =loop%>
</li>
<% } %>
</ul>
</div>
    
                    
            

Comments or Responses

Posted by: T.Saravanan on: 10/28/2012 Level:Silver | Status: [Member] [MVP] | Points: 10
Hi Ranjeet,

Could you explain about "Razor Syntex"? Without explanation in code there is no useful to users.

Login to post response