
How to pass value from an ASP page to another ASP page?
POST the Time.asp to the Expenses.asp
In Expenses.asp use
strVariableA=request.form("taskdt")
to get taskdt as a string.
now you probably want it in a date/time format so use DateValue
dateVariableB=Datevalue(request.form("taskdt"))
I hope that works.
Martin Stehle
Quote:
>Hi,
>In my ASP page(Time.asp), I have a field('taskdt') and a button('Add
>Expenses') in a form. User enters the date into 'taskdt' field. User clicks
>on the 'Add Expenses' button and go to another ASP page(Expenses.asp).
>What I want to do is: pass the value that user entered in 'taskdt' field in
>Time.asp to Expenses.asp page, and display this value. How do I do this?
>Thanks.
>Jun