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. 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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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,...
|
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...
|
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......
|
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 ...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |