Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
hello,
how to develop series from 1 to 100 in asp.net(using c# code)..any one can help me??
Posted
Comments
Karthik Harve 1-Dec-11 0:43am    
have you tried any methods..?? facing any problems/Errors in that method..??
ythisbug 1-Dec-11 0:50am    
yeah i tried but not displaying..i mean numbers from 1 to 100
[no name] 1-Dec-11 0:48am    
what series??
ythisbug 1-Dec-11 0:50am    
in numbers 1 to 100
gokulnath1 1-Dec-11 0:55am    
did u mean u want to print 1 to 100 on ur screen????

Try this one :
C#
protected void Button1_Click(object sender, EventArgs e)
  {
      Label Label1 = new Label();
      for (int i = 0; i < 100; i++)
      {
          Label1.Text = Label1.Text + i;
      }
  }

I hope it will help you. :)
 
Share this answer
 
C#
int x;
for (x = 1; x <= 100; x++)
   Console.WriteLine("x");



hope this helps u....
 
Share this answer
 
v2
Comments
gokulnath1 1-Dec-11 1:57am    
if this helped u can u rate 5 for this ans....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900