Kamala Veni

Kamala Veni

  • NA
  • 65
  • 20k

same no in for three tyms by for loop

Jul 12 2016 5:59 AM
Hi
 
i Have a label it value is 7...while saving in the sql table its should be save 1st three row as  7,7,7 den next 30 entry its should print as 8
 
ex:
 
dd dm            dd - for date,dm- for month
28 7
29 7
29 7
30 7
1  8 
2  8
.....
 
30  8 
 
lyk dis i wanna save in sql table using fr loop ..
 
i done fr date,nw i need fr month: 
 
for (int a = 28; a < 30; a++)    this is for date..
{
 
lbdt.Text = a.ToString();
 
 if(a == 30 ) continue
if(a==31)break;
 
for (int j = 1; a < 30; a++) 
{
 
  lbdt.Text = j.To String;
}
 
as lyk dis i need fr month to save in single submit for 30 days 
 

Answers (1)