views:

22

answers:

2

Hi. How install asp.net membership provider from C# code ? input is only connection string. Thats all. Thank you

+1  A: 

You may want to take a look at Scott Mitchell's walk-through of getting up and running with ASP.NET Membership (along with Roles, Profile) here:

http://www.4guysfromrolla.com/articles/120705-1.aspx

It's a pretty lengthy, but very detailed, series of posts. Hopefully it provides you the information you need. Part 3 of his series will walk you through setting up the SQL side of membership, with how to run the appropriate SQL scripts, etc. to get everything ready for your code.

I hope this helps!

David Hoerster
A: 

You could shell out (Process.Start(xxx)) to aspnet_regiis.exe

Sky Sanders