Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to pass a dataset or generic list one page to another without using session in asp.net c#.
because session is not working perfectly in my host. Session automatically timeouting in every short period. So changed storing my login details into cookies instead of session its working perfectly now.
is there any way to pass mydatas into another pages pls help.
Posted

A dataset can be passed from one page to another, either by using Serialization or Cache concept.
The best way is to use the Cache object .
 
Share this answer
 
v2
Comments
abdul wahab.o 13-Oct-11 9:02am    
thanks
pls can u provide a sample code or something?
member60 14-Oct-11 0:39am    
Plz refer
http://forums.asp.net/t/1430709.aspx/1?Passing+Dataset+From+One+Page+TO+Another+In+ASP+Net
I would go back to storing login details in the session - storing them in cookies is not secure.

Then you have to find out why your Sessions are timing out. The timeout is set to 20 mins by default, but is configurable in web.config[^].

Another possibility is that IIS is shutting down the worker process due to inactivity or recycling it, as it does periodically. You can use a Session State Server[^]in this case.
 
Share this answer
 
Comments
abdul wahab.o 13-Oct-11 23:44pm    
thanks

I tried a lot with session. But i cant get any solution.
I set session timeout toooo

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900