Transfer Data between pages

D

DaMan

I need to transfer data between pages, I tried this, but the value displayed
is "YYYYDDMM" instead of the actual date. Any ideas. Thanks..
in Search.ASPX

Context.Items.Add("tmpStartDate", Format(calStartDate.SelectedDate.Year,
"YYYY") & Format(calStartDate.SelectedDate.Month, "MM") &
Format(calStartDate.SelectedDate.Day, "DD"))

Server.Transfer("Results.aspx")
Response.Redirect("Resluts.aspx", True)

In RESULTS.ASPX
? context.Items("tmpStartDate") in the results.aspx page yields the string
"YYYYMMDD", not the date

Thanks
 
J

Jeffrey Tan[MSFT]

Hi DaMan,

Is your problem resolved?

ASP.NET provides the cross-request state information infrastructure that
Web applications require. Session enables you to store session-scoped data
on the server for use across multiple browser requests.

For more information, please refer to:
"Session State"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconSessionState.asp

and "Underpinnings of the Session State Implementation in ASP.NET"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html
/aspnetsessionstate.asp

Hope it helps,

If you have anything unclear, please feel free to tell me, I will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi bucrepus,

Thanks very much for your feedback.

I am glad you got what you want. If you have any further concern, please
feel free to tell me, I will help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi,

The link string is wrapped, you should join all the wrapped lines together.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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
474,265
Messages
2,571,071
Members
48,771
Latest member
ElysaD

Latest Threads

Top