My CodeBehind:
1 SomeClass
2 {
3 int NoOfRecords =10
4 public .......... page_load()
5 {
6 -----------
7 -----------
8 -----------
9 }
10 }
My Aspx1 <%
2 for (int i;i<=NoOfRecords;i++)
3 {
4 // This loop is using the codebehind variable NoOfRecords
5 }
6 %>
...
Go to the complete details ...