Susanta Rout

Susanta Rout

  • 787
  • 1.1k
  • 127.3k

how to for loop in between a html tag

Sep 5 2015 6:59 AM
how to change text of button according to for loop
my code is like this
<%for(int i=1;i<14;i++)
{%>
<asp:Button runtat="server" id="btn1" text="i want value of i here" commandargument="i want value of i here too/>
<%if(i%5==0)
{%>
</br> every five number a line braeak
<%}%>-----if block end
<%}%>for loop end

Answers (5)