Is this possible in ASP?

J

Jack

Hi,
I have a detail asp form where the user inputs as following:

expenseid expense type of expense
comment
............... ............ .......................
...............
.............. ............ .......................
...............


TotalExpense ...........

The above total expense needs to be transferred to a summary form.
I believe this can be done by server side coding. Any advise as how to
transfer the TotalExpense value to the summary page? Thanks
 
A

Adrienne Boswell

Hi,
I have a detail asp form where the user inputs as following:

expenseid expense type of expense
comment
.............. ............
.......................
...............
............. ............
.......................
...............


TotalExpense ...........

The above total expense needs to be transferred to a summary form.
I believe this can be done by server side coding. Any advise as how to
transfer the TotalExpense value to the summary page? Thanks

Is there more than one row in each column? If so I suggest,

<input type="text" name="expenseid" id="expenseid1">
<input type="text" name="expense" id="expense1">
<input type="text" name="expensetype" id="expensetype1">
<input type="text" name="comment" id="comment1">

You're going to get back something like:
expenseid = 1, 2, 3
expense = 200, 500, 50
expensetype = car, rent, food
comment = good, bad, indiffernet

Then you can get the values doing a split on each.

for each value in split(expense,", ")
total = total + cdbl(value)
next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top