Tag: profilecommon

Web应用程序项目 – 如何使用ProfileCommon

我正在将我在旧盒子上开发的网站移植到新的开发环境中。 我还没有复制所有文件,因为我没有很好的文件结构,并且在我进行的过程中需要删除部分代码。 最初我创建了一个网站(文件 – >新建 – >网站)。 我想要一个文件结构,如: 用于构建的流行文件夹结构 所以我创建了一个新的空白解决方案,所以sln文件是独立的,然后添加项目(各种DLL项目)和ASP.NET Web应用程序。 这最后一部分似乎给我带来了一些问题,我现在收到以下错误: “无法找到类型或命名空间名称’ProfileCommon’”。 我找到了以下页面: http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx 这似乎有点长,我希望有人可能知道更好的解决方案。 我试图将ProfileCommon与CreateUser向导一起使用,因为我在其中添加了一些额外的信息。 protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e) { // Create an empty Profile for the newly created user ProfileCommon p = (ProfileCommon)ProfileCommon.Create(CreateUserWizard1.UserName, true); // Populate some Profile properties off of the create user wizard p.CurrentLevel = Int32.Parse(((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl(“clevel”)).SelectedValue); // Save […]