ASP.Net Membership Provider Lab and Walkthrough<br />Installing the Built-In SQLMembership Provider<br />SQL Server Name: ...
Labs And Walkthroughs
Labs And Walkthroughs
Labs And Walkthroughs
Upcoming SlideShare
Loading in...5
×

Labs And Walkthroughs

607

Published on

Quick notes on building the necessary componets. This is what I used during the presentation. I still need to clean up this doc

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
607
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Labs And Walkthroughs

  1. 1. ASP.Net Membership Provider Lab and Walkthrough<br />Installing the Built-In SQLMembership Provider<br />SQL Server Name: NMTW-CA0AF8755ESQLEXPRESS<br />Database Name: ASPNETBD<br /><ul><li>StepsNotesInstall SQL 2005/2008 Express.Configure SQL Server for Remote Access Use the SQL Surface Area Configuration toolsTurn off Firewall and Virus protectionInstall Membership Provider DBEnsure that the SQL Service is running.Run the following file:C:WINDOWSmicrosoft.NETFrameworkv2.0.50727aspnet_regsql.exeIn control panel services check for(MSSQL$SQLEXPRESS) is running (Services)Create new Web project in Visual StudioName it ArchitectFactoryModify the Web.config and add a ConnectionString called “LocalServer”<connectionStrings> <clear/> <add name="LocalSQLServer" connectionString="Server=NMTW-CA0AF8755ESQLEXPRESS;Database=aspnetdb;Trusted_Connection=Yes;"/> </connectionStrings>Run ASP.Net ConfigurationOpen Visual Studio, Select the WEB APPLICTION then choose Menu - Project/Asp .Net ConfigurationCreate New User using ASP.Net Configuration</li></ul>Using the Built-In Login Controls<br />Create three Web pages: CreateUser.aspx, Login.aspx, and Default.aspx<br />StepsNotesCreate new Web page “CreateUser.aspx”Add a CreateUserWizard to the web pageCreate new Web page “Login.aspx”Add a Login.aspxAdd a LoginView Control to the FormAdd a Login Control to the formCreate a new Web page “Default.aspx”Add Welcome Text to the pageAdd a LoginStatusConfigure Web.configSet “FORMS” authentication<br />Implement Custom Membership Provider for Tricipher<br />Create a new Class Project. <br />Add references for B2F and APINET2<br />StepsNotesCreate new Class Library Project named TricipherProviderAdd in AppUtil.cs and B2FUtil.cs[Enter Directory Here]Create User.cs class inherit from “MembershipUser”. Add the following Properties public string ActivationCode; public bool Active = false; public bool Authenticated = false; public string Certificate; public bool DeviceValid = false; public int ImagePage; public bool KBAValid = false; public string Password; public string Question1; public string Question2; public string Question3; public sbyte[] WelcomeImage;Add Project References: System.WebSystem.ConfigurationApinet2B2F2Rename Class1 named: CustomMembershipProvider and inherit from “MembershipProvider”Right click MembershipProvider and Select Implement Abstract ClassAdd the required Tricipher namespaces following Namespaces: using B2F;using System.Collections;using System.Collections.Specialized;using System.Runtime.InteropServices;using System.Web.Security;using Trc;Remove ValidateUser method Toolbox snipitsReplace with ValidateUserAdd Initialize and CreateUser Toolbox snipitsConfigure Web.config of Web ApplicationCopy Application Settings from Web.config (Ctrl C then Ctrl z to remove extra spaces)<br />

×