Is this possible in ASP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jack

    Is this possible in ASP?

    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
  • Adrienne Boswell

    #2
    Re: Is this possible in ASP?

    Gazing into my crystal ball I observed "=?Utf-8?B?SmFjaw==?="
    <Jack@discussio ns.microsoft.co m> writing in
    news:61339C54-BB71-4B46-ADB0-B17EB08C8836@mi crosoft.com:
    [color=blue]
    > 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
    >[/color]

    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="expensety pe" id="expensetype 1">
    <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

    Comment

    Working...