I have a question Which membership provider codeshould i use when attempting to connect a a sql2000/2005 on remotedata base Thanks <membership> <providers> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" /> </providers> </membership> <configuration> <connectionStrings> <add name="SqlServices" connectionString="Data Source=MySqlServer;Integrated Security=SSPI;Initial Catalog=aspnetdb;" /> </connectionStrings> <system.web> <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="20"> <providers> <remove name="AspNetSqlProvider" /> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SqlServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" passwordFormat="Hashed" applicationName="/" /> </providers> </membership> </system.web> </configuration>
You should find everything you need here on the Channel 9 wiki: http://channel9.msdn.com/wiki/default.aspx/Channel9.HowToUseMembership
I did check the link but i was looking for some info on the MembershipProviderson setting up the passwordRecovery id to send email when a userforget their password.
roger that MSDN: http://msdn2.microsoft.com/en-us/netframework/system.web.ui.webcontrols.passwordrecovery(VS.80).aspx ASPalliance: http://authors.aspalliance.com/aspxtreme/aspnet/syntax/passwordrecoverywebcontrol.aspx ASP.NET: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/login/passwordrecovery.aspx
Thanks is it possiable if i didn't havethe membership provider tag setup in my web.config, would istill able to use the passwordRecovery featureto send password.Because i i have a project setup using the membership role and i cannot get the passwordRecovery to send email Thanks you
ok off topic I'm running an aspnet.mdf database on the server and i'm wondering if i can upload another project with another aspnet db on the same server without causing any confliction. or i should say how can i upload the other database.I did made an attemp to rename one of thembut vwd says u cannot change the name. so what can i do Thanks Im running SQL2000
I think the first paragraph on this page answers that: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/login/passwordrecovery.aspx
If you mount a second DB it will wipe out the existing one. Best thing is to create a merge from within SQL Server. Not very tricky to create a new DB locally and pump your data into it. If you get into any conflicts just use underscores or table name prefixes, things like that.