How to pass value from an ASP page to another ASP page? 
Author Message
 How to pass value from an ASP page to another ASP page?

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



Fri, 16 Jan 2004 14:41:51 GMT  
 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



Fri, 16 Jan 2004 15:52:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to pass value from an ASP page to another ASP page?

2. Problem with COMPLIB Rebuild after VCL Source Modification :-(

3. ObjectContext vs. Passing ASP objects from ASP page

4. Passing Values to asp page

5. Passing values between an ASP page and an HTA - VBS script

6. Splash screens

7. passing data from asp page to ASP.NET

8. calling asp page from another asp page

9. DBase, Paradox, InerBase, Which to choose ?

10. New article on porting ASP pages to ASP .NET available on MSDN

11. Cannot run ASP pages anymore - COM+ and ASP error

12. ASP : Passing values from One ASP to the Next

 

 
Powered by phpBB® Forum Software