Click here to Skip to main content
15,918,330 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Is it possible to use Session in asp.net Windows forms ?
Posted
Updated 17-Aug-11 1:45am
v2
Comments
R. Giskard Reventlov 17-Aug-11 6:27am    
Why would you want to?
Prerak Patel 17-Aug-11 6:27am    
ASP.Net windows forms??!! Make it clear.
Simon Bang Terkildsen 17-Aug-11 6:30am    
ASP.NET and windows forms are to completely different things.
[no name] 17-Aug-11 6:51am    
They are, but still I do that all the time. At least when I have a WinForm client and a webservice. But then the session of course is kept in the webservice, not in the client itself
Simon Bang Terkildsen 17-Aug-11 7:17am    
yeah, but that's still a client application and a webservice, two seperate systems, they might share libraries, but they are seperate.

Dear DIVYA.K.PANI,

First of all, Window application/Winforms are not the part of asp.net. These are developed by using .Net Framework (Not asp.net).

To Maintain the value of any variable through out application or one to another form. We can create class of properties and get-set value of particular property through out application.

Regards!
Aman
 
Share this answer
 
v2
No. Windows Forms is a desktop platform, and therefore doesn't need/have a Session object.
 
Share this answer
 
v2

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