Rafaselic 0 Denunciar post Postado Abril 1, 2011 Bom dia Gostaria de saber como utilizar as classes do MemberShip aspnet, porém, sem utilizar os controles do aspnet. Criando meus próprios controles. Enfim, como configurar tudo isto para funcionar? Desde já, agradeço. Compartilhar este post Link para o post Compartilhar em outros sites
Rafaselic 0 Denunciar post Postado Abril 1, 2011 Podem marcar como resolvido. Configurei tudo no WebConfig: <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <appSettings> </appSettings> <connectionStrings> <add name="MemberShip" connectionString="Data Source=;Initial Catalog=aspnetdb;Persist Security Info=True;User=sa;Password='" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <authentication mode="Forms"> <forms name="AutoCookie" loginUrl="Login.aspx" timeout="60" path="/" defaultUrl="Home.aspx"></forms> </authentication> <authorization> <deny users="?"/> </authorization> <compilation debug="true" targetFramework="4.0" /> <roleManager enabled="false" /> <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15"> <providers> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="MemberShip" applicationName="WebApplication1" enablePasswordRetrieval="false" enablePasswordReset="true" passwordFormat="Hashed" requiresQuestionAndAnswer="true" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" /> </providers> </membership> </system.web> </configuration> Serve para alguém como exmplo Compartilhar este post Link para o post Compartilhar em outros sites