TigerFan987
MIS
I have created and asp.net website that has user profiles associated with users authenticated through Active Directory. I can add the profile and view other user profiles without any problem. But if I want to update another users profile it doesn't want to work.
If I hard code the values into the update like below it works fine:
But if I try to get the updated values from textboxes like below, it won't work.
What am I doing wrong?
Thanks,
If I hard code the values into the update like below it works fine:
Code:
Dim userProfile As New ProfileCommon
userProfile = Profile.GetProfile("username")
With userProfile
.FirstName = "asdf"
.LastName = "dfgh"
End With
userProfile.Save()
But if I try to get the updated values from textboxes like below, it won't work.
Code:
Dim userProfile As New ProfileCommon
userProfile = Profile.GetProfile("username")
With userProfile
.FirstName = txtFname.text.toString
.LastName = txtLname.Text.ToString
End With
userProfile.Save()
What am I doing wrong?
Thanks,