您可以在 Windows 应用程序中使用 asp.net 会员资格提供程序吗? [英] Can you use the asp.net membership provider in a windows application?

查看:20
本文介绍了您可以在 Windows 应用程序中使用 asp.net 会员资格提供程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Asp.Net 成员资格提供程序在 Web 应用程序中有一些明确的用途.我正在考虑尝试利用 Windows 应用程序(更具体地说是 WPF)中的一些功能.有谁知道是否可以在 Windows 应用程序中使用核心功能?我主要是在寻找它来创建我的数据库表,并维护用户、角色和配置文件.我显然不需要使用内置的网络控件(例如登录).

The Asp.Net membership provider has some clear uses in a web app. I am thinking about trying to leverage some of the features in a windows application (more specifically WPF). Does anyone know if it is possible to use the core features in a windows app? I am mostly just looking for it to create my database tables, and maintain users, roles, and profiles. I obviously do not need to use the built-in web controls (e.g. Login).

推荐答案

我有一个与 DotNetNuke (DNN) 对话的 winform 应用程序.DNN 使用 Asp.net 成员资格提供程序,因此该源也适用于使用该成员资格提供程序的其他应用程序.这是一个非常简单的应用程序,因此您应该能够轻松阅读源代码.

I have a winform app that talks to DotNetNuke (DNN). DNN uses the Asp.net membership provider, so the source will work for other apps that use that membership provider as well. It's a very simple app, so you should be able to read the source easily.

http://www.datakido.com/downloads/Token/ViewInfo/ItemId/3

您应该能够调整源代码以使用 WPF.

You should be able to adapt the source to work with WPF.

这篇关于您可以在 Windows 应用程序中使用 asp.net 会员资格提供程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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