无法检索个人资料信息 [英] Unable to retrieve profile info

查看:77
本文介绍了无法检索个人资料信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用新的会员功能开始我的第一个2.0网站,并且

在配置文件方面遇到了一些问题。我有我的供应商设置和工作

罚款和配置文件数据正在写入数据库。但是,我不能在我的网站上检索任何存储的配置文件值。我设置了提供商

和各种MSDN文章中解释的一切,但

仍然没有。


有什么想法吗?

I''m just starting my first 2.0 site with the new membership features and am
having some trouble with profiles. I have my providers set up and working
fine and profile data is being written to the database. However, I can''t
retrieve any of the stored profile values on my site. I set up the provider
and everything just like it is explained in the various MSDN articles, but
still nothing.

Any thoughts?

推荐答案

您好Ashley,


您如何将数据库数据写入数据库,是它通过

Page.Profile对象?当您尝试检索配置文件数据时,您在web.config中配置的

配置文件字段是否显示在Intellisense下?


Chris

Hi Ashley,

How are you writing profile data to the database, is it through the
Page.Profile object? When you try to retrieve you profile data, do the
profile fields you configured in web.config appear under Intellisense?

Chris


我正在通过这样的点击处理程序编写值:


profile.DisplayName = txtDisplayName.Text


数据正好可以进入数据库,但是当

我打电话给profile.DisplayName

当我输入profile时,DisplayName确实显示在Intellisense下。


" Chris Fulstow"写道:
I''m writing the values through a click handler like this:

profile.DisplayName = txtDisplayName.Text

The data is making it to the database just fine, but doesn''t come back when
I make a call to profile.DisplayName

DisplayName does show up under Intellisense when I type in "profile".

"Chris Fulstow" wrote:
您好Ashley,

您是如何通过
Page.Profile对象将配置文件数据写入数据库的?当您尝试检索配置文件数据时,您在web.config中配置的
配置文件字段是否显示在Intellisense下?

Chris
Hi Ashley,

How are you writing profile data to the database, is it through the
Page.Profile object? When you try to retrieve you profile data, do the
profile fields you configured in web.config appear under Intellisense?

Chris



您在哪个事件处理程序中读取配置文件值?

In which event handler are you trying to read the profile values?


这篇关于无法检索个人资料信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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