Click here to Skip to main content
16,020,305 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
User 418025416-Apr-19 5:26
User 418025416-Apr-19 5:26 
GeneralRe: In 3 tier architecture , filling textboxes with values from database table Pin
Member 1418527516-Apr-19 6:04
Member 1418527516-Apr-19 6:04 
QuestionMake a title of the field goes over the field: asp MVC5 / Razor Pin
thabet idris12-Apr-19 0:15
thabet idris12-Apr-19 0:15 
AnswerRe: Make a title of the field goes over the field: asp MVC5 / Razor Pin
User 418025412-Apr-19 5:55
User 418025412-Apr-19 5:55 
AnswerRe: Make a title of the field goes over the field: asp MVC5 / Razor Pin
Richard Deeming15-Apr-19 8:28
mveRichard Deeming15-Apr-19 8:28 
QuestionDisplay a message when Radio Button is not selected Pin
Member 128239698-Apr-19 4:58
Member 128239698-Apr-19 4:58 
AnswerRe: Display a message when Radio Button is not selected Pin
Vincent Maverick Durano10-Apr-19 11:03
professionalVincent Maverick Durano10-Apr-19 11:03 
QuestionMembership section of VS2017 Web config Pin
Member 87616678-Apr-19 2:02
Member 87616678-Apr-19 2:02 
Hello

After adding MSSQLLocalDB and ProjectsV13 servers to my Web project which is based on the Register.aspx and Logon.aspx files in Microsoft's WebFormsIdentity template, I have the following in my Web.config file:


<pre><?xml version="1.0" encoding="utf-8"?>

<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework"
      type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
      requirePermission="false"/>
  </configSections>
  <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-WebFormsIdentity-20190319020136.mdf;Initial Catalog=aspnet-WebFormsIdentity-20190319020136;Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
    <authentication mode="None"/>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.6.1"/>
    <httpRuntime targetFramework="4.6.1"/>
    <pages>
      <namespaces>
        <add namespace="System.Web.Optimization"/>
      </namespaces>
      <controls>
        <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/>
      </controls>
    </pages>
    <membership>
      <providers>
        <!--
	      ASP.NET Membership is disabled in this template. Please visit the following link https://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
        -->
        <clear/>
      </providers>
    </membership>
    <profile>
      <providers>
        <!--
	      ASP.NET Membership Profile is disabled in this template. Please visit the following link https://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
        -->
        <clear/>
      </providers>
    </profile>
    <roleManager>
      <!--
	        ASP.NET Membership Role is disabled in this template. Please visit the following link https://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
        -->
      <providers>
        <clear/>
      </providers>
    </roleManager>
       <sessionState mode="InProc" customProvider="DefaultSessionProvider">
      <providers>
        <add name="DefaultSessionProvider"
          type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
          connectionStringName="DefaultConnection"/>
      </providers>
    </sessionState>
  </system.web>

etc


I am interested in enabling ASP.NET Membership, ASP.NET Membership Profile, and ASP.NET Membership Role. I have visited the link provided by Microsoft but it doesn't tell me much and seems outdated. For ASP.NET Membership, I am proposing:

<membership>
      <providers>
        <clear />
         <add 
          name="Net SqlClient Data Provider"
          type="System.Web.Security.SqlMembershipProvider" 'not sure of the type for my own project: where do I find that information?
          connectionStringName="MySqlConnection" 'MSSQL.LocalDB?
          applicationName="WebFormsIdentity"
          enablePasswordRetrieval="false"
          enablePasswordReset="true"
          requiresQuestionAndAnswer="false"
          requiresUniqueEmail="true"
          passwordFormat="Hashed" />
      </providers>
    </membership>


but have no idea about how to enable Membership Profile or ASP.NET Membership Role.

Thank you for any advice.
Questionwhy's the error not found namespace or class ? Pin
Member 24584676-Apr-19 20:43
Member 24584676-Apr-19 20:43 
AnswerRe: why's the error not found namespace or class ? Pin
OriginalGriff7-Apr-19 20:07
mveOriginalGriff7-Apr-19 20:07 
GeneralRe: why's the error not found namespace or class ? Pin
Member 245846723-Apr-19 16:39
Member 245846723-Apr-19 16:39 
GeneralRe: why's the error not found namespace or class ? Pin
Mycroft Holmes23-Apr-19 19:18
professionalMycroft Holmes23-Apr-19 19:18 
GeneralRe: why's the error not found namespace or class ? Pin
OriginalGriff23-Apr-19 20:03
mveOriginalGriff23-Apr-19 20:03 
Question.Net Core 2.2.3 with Angular, preparing for Docker Container Deployment with MongoDB running in a container, all Linux going crazy Pin
jkirkerx5-Apr-19 12:27
professionaljkirkerx5-Apr-19 12:27 
AnswerRe: .Net Core 2.2.3 with Angular, preparing for Docker Container Deployment with MongoDB running in a container, all Linux going crazy Pin
jkirkerx7-Apr-19 11:50
professionaljkirkerx7-Apr-19 11:50 
AnswerFinally figured it out! Pin
jkirkerx11-Apr-19 12:47
professionaljkirkerx11-Apr-19 12:47 
QuestionMy div repeated 3 times if format its css if use form runas server Pin
Ashraf Khalifah4-Apr-19 23:25
Ashraf Khalifah4-Apr-19 23:25 
AnswerRe: My div repeated 3 times if format its css if use form runas server Pin
User 418025411-Apr-19 8:48
User 418025411-Apr-19 8:48 
Question(SOLVED) WHy is my image not displaying on a certain page? Pin
samflex3-Apr-19 6:28
samflex3-Apr-19 6:28 
AnswerRe: WHy is my image not displaying on a certain page? Pin
Richard Deeming3-Apr-19 7:48
mveRichard Deeming3-Apr-19 7:48 
GeneralRe: WHy is my image not displaying on a certain page? Pin
samflex3-Apr-19 9:56
samflex3-Apr-19 9:56 
GeneralRe: WHy is my image not displaying on a certain page? Pin
Richard Deeming3-Apr-19 22:00
mveRichard Deeming3-Apr-19 22:00 
GeneralRe: WHy is my image not displaying on a certain page? Pin
samflex4-Apr-19 5:59
samflex4-Apr-19 5:59 
QuestionLoad event fires twice and QueryString becomes empty!! Pin
pldelosrios2-Apr-19 3:41
pldelosrios2-Apr-19 3:41 
SuggestionRe: Load event fires twice and QueryString becomes empty!! Pin
Richard Deeming2-Apr-19 8:16
mveRichard Deeming2-Apr-19 8:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.