如何在WPF中存储登录信息并重用它? (ASP.Net的Cookies功能) [英] How to Store login information in WPF and reuse it ? (Cookies functionality of ASP.Net)

查看:387
本文介绍了如何在WPF中存储登录信息并重用它? (ASP.Net的Cookies功能)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了很多,但无法找到完美的解决方案。



我正在使用WPF桌面应用程序,



用户名,数据库名称,服务器名称和密码..用户为成功访问/登录系统而输入的信息。我希望将这些信息存储在一些内存中,并在会话/应用程序结束后重复使用。



喜欢在gmail.com中,我们不需要输入我们的电子邮件ID访问它。 (默认情况下,如果我们之前使用过)。



最相关的解决方案 - http://www.dotnetfunda.com/articles/show/955/using- isolatedstoragefile-to-store-data-in-wpf-application-class-event



我试图使用list< string>存储数据和访问,但不能这样做。



非常感谢提前。 (这是我第一次在网上提出任何问题)

I have tried a lot, but not able to find a perfect solution for same.

I am wokring on a WPF Desktop application,

Username, Database name ,server name and password.. those information user entered for successful access/login into the system. I want to store those information in some memory and reuse it after session/application end.

like in gmail.com, we don't need to enter our email id to access it. (It by default available, if we used earlier).

Most relevant solution - http://www.dotnetfunda.com/articles/show/955/using-isolatedstoragefile-to-store-data-in-wpf-application-class-event

I have tried to use list<string> to store data and access, but not able to do it.

Many thanks in advance. (this is my first time to ask any question online)

推荐答案

收到的大多数不相关的解决方案。请参考我分享的链接,告诉我如何从app.xaml.cs获取数据到window1.xaml.cs的控件。
Most irrelevant solutions received. Please refer the link I shared and tell me how to fetch data from app.xaml.cs to window1.xaml.cs's controls.


这篇关于如何在WPF中存储登录信息并重用它? (ASP.Net的Cookies功能)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆