473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

createuserwizard control - adding additional fields

I am working with one of the .net starter kits and it uses the
createuserwizard control. That's fine, but it doesn't include a field
for first and last name. On another thread on asp.net, they suggested
using the profile in the web.config to create firstname and lastname
properties and then have the profile save when a user registers. That
works fine, but what I'm trying to do is replace all the instances in
the app of the username with the firstname and lastname.
Unfortunately, the profile info is stored with all the values concatted
together and no easy way to split it apart (at least in a query
anyway). The only way I've found (I think, haven't actually tried it
yet) to do this is to call the ProfileManager's
ProfileManager.FindProfilesByUserName to get the settings for each item
I databind to a dropdownlist. But, I would imagine that the
FindProfilesByUserName hits the database, so if I have 10 people being
added to 1 dropdown, that's 10 separate hits for that one dropdownlist,
right? Anyone know of another, easier or more efficient way to do
this? Thanks.

Apr 26 '06 #1
1 3075
Hello vtxr1300,

I would think you could customize (template) the CreateUserWizard control to
require the input of both the first and last name. Then you could append them
together with a (space between them) and make the call to the
membership.CreateUser() method yourself. It means you have to do a bit more
coding, but then you could use the LoginName control without having to go to
the profile api. You leave all the membership tables entact and the username
would just show up as the first and last name.

--
brians
http://www.limbertech.com
"vtxr1300" wrote:
I am working with one of the .net starter kits and it uses the
createuserwizard control. That's fine, but it doesn't include a field
for first and last name. On another thread on asp.net, they suggested
using the profile in the web.config to create firstname and lastname
properties and then have the profile save when a user registers. That
works fine, but what I'm trying to do is replace all the instances in
the app of the username with the firstname and lastname.
Unfortunately, the profile info is stored with all the values concatted
together and no easy way to split it apart (at least in a query
anyway). The only way I've found (I think, haven't actually tried it
yet) to do this is to call the ProfileManager's
ProfileManager.FindProfilesByUserName to get the settings for each item
I databind to a dropdownlist. But, I would imagine that the
FindProfilesByUserName hits the database, so if I have 10 people being
added to 1 dropdown, that's 10 separate hits for that one dropdownlist,
right? Anyone know of another, easier or more efficient way to do
this? Thanks.

Apr 26 '06 #2

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

Similar topics

2
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As...
0
by: Chris | last post by:
Hi, In order to be able to buy products, the user must be logged. This happens with the CreateUserWizard control. When the user must confirm his purchases, he must give other data as address,...
2
by: hardieca | last post by:
Hi! I have a CreateUserWizard control with the usual suspects of validators. As you're probably aware, each validator is associated with one of CreateUserWizard's child controls. When a user...
1
by: mazdotnet | last post by:
Hi guys, I've just started using ASP.NET's membership feature and it all seems pretty good. However, I need to have additional fields such as Address, Postal Code, Country, State, City...etc......
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the CreateUserWizard step 2 alongwith Create User ...
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the second step of CreateUserWizard control...
3
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit...
9
by: markla | last post by:
Hi, I have an EDM model, which I'm rendering using DynamicData pages. I need to add a derived/calculated field. For example, in a "Person" entity, I have LastName and FirstName. I need to...
2
by: xMetalDetectorx | last post by:
I have a CreateUserWizard control, for which I customized the first step. All I did was add 3 DropdownLists to represent Date of Birth fields. So I have Month, Day, and Year dropdowns. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.