V
vtxr1300
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.
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.