Last post Oct 09, 2013 09:57 AM by Illeris
Oct 02, 2013 12:06 PM|ragavASPNET|LINK
Thanks in advance
If i want windows application and web application to share data how can i make it possible because both are two different application types like sessions are applicable to windows applications
Oct 02, 2013 12:24 PM|PatriceSc|LINK
both are two different application types like sessions are applicable to windows applications
Not sure what you meant.
You could use
http://www.asp.net/web-api/overview/web-api-clients/calling-a-web-api-from-a-net-client the idea being that "Almost any platform that you can think of has an HTTP library, so HTTP services can reach a broad range of clients, including browsers, mobile devices,
and traditional desktop applications." (taken from earlier introduction pages)
If it doesn't help try to give some more details.
Oct 02, 2013 01:45 PM|ragavASPNET|LINK
I mean if you are using session vaiable in asp.net application .how can you make same value available in windows application
Oct 03, 2013 03:56 AM|PatriceSc|LINK
Session variable are for small pieces of information. What do you want to share actually ? Do you mean you want the user to use both a web and a Windows application at the same time ?
My understanding is that you wanted rather have a web app showing some info (taken from a db) and having a Windows app showing the same info and that could be used separately.
Try to explain what you are trying to do rather than how you think it should be done.
Oct 03, 2013 04:50 AM|Illeris|LINK
There is a basic trick that works, but does have some limitations:
If you add data to this item for the user (win or web) it will be persistant, and accessible from both tiers during the lifetime of the object. It does however require each user to log in individually, and ideally you should dispose of it when a user logs
It's ont the best approach, but the simplest one.
An alternative (more complex):
Oct 04, 2013 02:44 AM|shabirhakim1|LINK
The straight forward answer is NO.But if you really want to use to make it then you have to be anti pattern like using outproc session managemnt (which saves data in sql) .so you can read data from sql server using your windows application..Again
depends ..So , i believe there no straight forward way to share data between two tyes.
you can use text ,xml or some type of data persistance between and finish your work :)
Oct 09, 2013 09:57 AM|Illeris|LINK
I totally agree the solution ain't ideal. But if you have the requirement, you sometimes need to look for the least worst solution :-)