forum

home / developersection / forums / sql insert doing for loop

sql insert doing for loop

Sheen Buhay 3676 11-Oct-2011

Hi guys,

Server controls: Label, TextBox, Button and GridView.

I need some help regarding my issue.

If a user would like to enter the ff:

Enter Number of Payments: 3    <Button Details> - if pressed     >>> 3 x a user

will input values

Number of Payments - auto-generated value according to number of

payments entered

it will show:

Pay# : 1 
Week: 1
Percent/wk: 50

loop

Pay#: 2
Week: 5
Percent/wk: 30

Pay#: 3
Week: 9
Percent/wk: 20


The time it will reach the third entry it will stop the operation. All those entries will be saved directly on sql server database. The week entry increments by 4 while the condition is true.

I have an idea on how to insert data however, this concern uses an iteration until it satisfies the condition to terminate the insertion.

Any help are highly appreciated. Thanks.

c# c# 
Updated on 07-Nov-2011
Sheen Buhay

Other


Message
Can you answer this question?

Answer

7 Answers

Liked By