473,698 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Profile in Asp.Net 2.0

Hello,

On the web site I am working I have multiple profile properties, being
each one a custom class:

<add allowAnonymous= "false" name="Personal"
type="MyWebSite .Profile.Collab orator" serializeAs="Bi nary"/>
<add allowAnonymous= "false" name="Contacts"
type="MyWebSite .Profile.Contac t" serializeAs="Bi nary"/>
<add allowAnonymous= "true" name="Settings"
type="MyWebSite .Profile.Settin gs" serializeAs="Bi nary"/>

I would like to know how should I create a new profile?

I am using the following:

Dim userProfile As ProfileCommon = Profile.GetProf ile(username)
With userProfile.Con tacts
.City = tbCity.Text
...
End With
With userProfile.Set tings
.Newsletter = cbNewsletter.Ch ecked
...
End With
....
userProfile.Sav e()

I was also checking ProfileBase.Cre ate ...

Anyway, could someone advice me on this?

Thanks,

Miguel

Jan 15 '07 #1
0 1006

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4354
by: Victor Hadianto | last post by:
Hello, Not sure if this is the right NG to ask but I'll fire away. How do I programatically create an Outlook user profile using .Net? I want to import a PST into the newly created profile and extract all the emails and save it to disk. I have done the rest of the program and only missing the creation of the new profile. I don't want to mess around with the current default profile in Outlook. Regards,
2
4146
by: Danny Springer | last post by:
I am trying to create the following xml file with VS 2005: <?xml version='1.0' encoding='utf-8'?> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="" GeneratedClassName="Extra"> <Profiles> <Profile Name="(Default)" /> </Profiles>
7
9993
by: Munsifali Rashid | last post by:
Hi, I've built a webservice in C# that can add public folders to Exchange. There's also a component built in VB6 which references the Outlook 10 (XP) DLL, so I can change the default form being used to post to a public folder. The component works fine when instantiated from a Windows script, but when using it from COM Interop in an ASP.NET web application it errors when trying to execute oNs.GetNameSpace("MAPI"). The error it throws...
0
1081
by: SR | last post by:
Suppose I have to create a dozen of users taking their data from a list Membership let me do it with the Create method, but what about Profile ? eg. I want FullName, Age (in Profile) UserId, pwd (in membership) something like (pseudocode): for each user in excel file Membership.CreateUser("john","....") // this doesn't work... ProfileCommon p = new ProfileCommon();
1
2309
by: VB Programmer | last post by:
I am using personalization/profile to store info for the user that is not contained in the aspnet_Users or aspnet_Membership tables. This info includes, firstname, lastname, and phonenumber. On my "signup" page I ask for all their info at one time, including username, password, firstname, lastname, etc.... After I do a Membership.CreateUser and Roles.AddUserToRole I want to store the profile information. But, the code still thinks...
2
1660
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm developing a web portal where users must login to. As far as I know all users are accessible from the MembershipUserCollection. I know that current user is also accessible via the Profile object in the webpage, but I want to access the properties of one of the other users. So I guess I have to create an instance of the ProfileCommon class... I have the username of the user I want to create a ProfileCommon object...
1
1349
by: shapper | last post by:
Hello, I have a profile with multiple profile properties in my Web.Config: <add allowAnonymous="false" name="Contact" type="Contact" serializeAs="Binary"/> <add allowAnonymous="false" name="Options" type="Options" serializeAs="Binary"/> Where each profile property is class, as follows:
1
1226
by: khairulfnd | last post by:
i m trying to create a user and add a role to the user and also add its personalization like first name and last name, all at the same time but there is a problem with the personalization. Since on the point i create the user its anonymous but is there a way to get the user from the database so that when i add the personalization it is not anonymous. This is my codes in VB Public Sub CreateUser_OnClick(ByVal sender As Object, ByVal args...
1
2668
by: shapper | last post by:
Hello, On my CMS I am signed as administrator and I am creating a Membership user and its profile: MembershipCreateStatus status; MembershipUser user = Membership.CreateUser("Joe", "Pass", "Joe@email.com", null, null, true, null, out status); if (user != null) { ProfileHelper profile =
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.