Asp.Net 2.0 Membership

A

ahmet

Hi,I have a problem with asp.net 2.0 membership. I have to create a profile
for a new user but I can't. There is my code. this code has not an error
but don't save profile a new user. How can i do

Age =
((TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("txtAge")).Text;

Country =
((DropDownList)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("slSehirler")).SelectedValue;

ProfileCommon profile =
(ProfileCommon)ProfileCommon.Create(CreateUserWizard1.UserName,true);

profile.Age = Age;

profile.Country = Country;

profile.Save();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top