Presentation is loading. Please wait.

Presentation is loading. Please wait.

Part 2.

Similar presentations


Presentation on theme: "Part 2."— Presentation transcript:

1 Ahmed_Moosa83@yahoo.com Part 2

2 www.Ahmedmoosa.wordpress.com

3  Authorization  Membership  App_Code  Cache  Url Mapping

4  Allow Or Deny ( Members –Users- groups ) Some Details :- ahmedmoosa just a user. Role is a Group and Admin it’s Name. ? Means Who is Unauthenticated and * means all users

5  Protect Page Or Folder Using Location The Same With Folder in path Property.Just Set Folder Name Like Path=“MyFolder” Note: Can Put More than one Role.Just Separate by Comma.

6  Create User and Password  Manage Users and Storing User information  ASP. Net Has Default Database Membership Call aspnetdb.mdf Work only With Form authentication Can Generated By Configuration Website Tool  Membership has Default Settings in machine.config.Modify it in Web.Config

7 <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" requiresQuestionAndAnswer=“true“ requiresUniqueEmail="true" passwordFormat="Hashed" minRequiredNonalphanumericCharacters=“1" minRequiredPasswordLength="3" />

8  Password must include at least one Character of ([],@,#.$ )  To Remove This Change This Property in Previous Code : Make it 0 minRequiredNonalphanumericCharacters="0"  Anther one :  Create User Programmatically May Show this Error Invalid QuestionAnswer Or Required :  To Solve it Make these property  requiresQuestionAndAnswer="false“

9  This Folder Can Contain Only Files With the Same Language (Files.CS only Or Files.vb Only )  To Make This Folder Works With Different Language We Can define Subdirectory in Web.Config.  First Create Folder in Solution Window and name it Then Modify Web.config With Follow :-

10  Make It fast  Using sqlCacheDependency in Web.Config <add name=“MyName" connectionStringName=“MYConnectionString1" /> After That Can Declare OutputCache in Page Directive Like this:

11  Map real URL by another one doesn't Exist  Put it Like This : Note :- ( Home.aspx (doesn’t Exist ) and Page.aspx aleardy Exist ) Wait …Wait :-  To Request This Page Use this : URL Mappping Page.aspx

12  Request Real URL Before Mapping : Request.rowUrl Example will Get ( Page.aspx )  Request Remapped Url : Request.Path Example will Get ( Home.php ) Note: May Be Hear About UrlReWriting The same idea But More Helpful, and will see in ASP.Net 4.0 Url Routing More Helpful See it in HereUrlReWritingHere

13  ASP.Net Administration Tool  ASP.Net Command Line  Membership in Details


Download ppt "Part 2."

Similar presentations


Ads by Google