Check out and use the aspnet_Membership_UnlockUser stored procedure and
others that were created and installed in your database when Membership was
configured by aspnet_regiis. Those stored procedures are how the Website
Administrator gets stuff done and we can reuse them in our own code.
You can learn a lot more about using C# to call stored procedures by
submitting the following search query to Google...
call stored procedure C# site:msdn2.microsoft.com
Peter's got a good point though about asking questions in other newsgroups
as you still have some design questions that still need to be answered.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL
http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W
"Michael" <Mi*****@discussions.microsoft.comwrote in message
news:FE**********************************@microsof t.com...
Hello,
I am using the Membership control in my asp.net application. When a
person
registers, I set the account to not active.
CreateUserWizard1.Enabled = false;
Then I send them an email with a link for them to click on to activate
their
account.
Got it all working, but do not know how to programaticly activate the
account.
I have to open the ASP.NET configuration web site and manually go to the
users account and click on 'active'.
How can I do this using C#?
Remember, when they click on the link in their email, it will open a page
on
my site, but they are not logged in. So I need some way to look up the
user
in my database, and then tell the membership api to find that user and set
them to active.
Thanks for your help...
Michael