Is this possible in ASP?

Discussion in 'ASP General' started by Jack, Dec 10, 2004.

  1. Jack

    Jack Guest

    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
    Jack, Dec 10, 2004
    #1
    1. Advertising

  2. Gazing into my crystal ball I observed "=?Utf-8?B?SmFjaw==?="
    <> writing in
    news::

    > 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



    --
    Adrienne Boswell
    Please respond to the Group so others can share
    Adrienne Boswell, Dec 11, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ed Eichman
    Replies:
    0
    Views:
    426
    Ed Eichman
    Aug 20, 2003
  2. Markus
    Replies:
    1
    Views:
    458
    Markus
    Nov 22, 2005
  3. Replies:
    4
    Views:
    284
    Kenny McCormack
    Feb 21, 2006
  4. Juan T. Llibre
    Replies:
    3
    Views:
    386
    Nick Chan
    Sep 17, 2007
  5. Replies:
    10
    Views:
    475
    Chris Gonnerman
    Dec 14, 2007
Loading...

Share This Page