布里斯班代寫 Marketing Statistics assignment essay 論文
The basic empty web application will be supplied with empty database (WebsiteDB.mdf) and a Customer table. This table includes two UserNames (admin and customer). Students who wish to implement ASP.NET membership (see 7.1) may make use of the included ASP.NET Membership database (ASPNETDB.mdf) and site map/application services pre-configured in theweb.config file. This database includes the same two UserNames (password same as the UserName) as well as admin and customer roles which should be used in conjunction with the sitemap provided.If you delete these users/roles from the database, you will need to add them back!
1.1.1 Login CodeThree pages are provided in the basic web application: Login.aspx, Default.aspx and Logout.aspx, each with supporting C# code in the associated behind code (.cs) file. The Login page provides a simple method for existing users to enter their username. If it exists in the database, a login “Session” will be started. The customer’s UserName can then be accessed by anySqlDataSource as a session parameter. A working example of how to do this is provided in the BasicExample folder found in the web application. The Logout.aspx page gives the user the option to log out. Doing so will end the user session by removing the UserName value from server memory. Lastly, the Default.aspx page includes a link to login or ut of the page dependent on the login status. Students must complete these pages by styling them as necessary.
Students implementing membership will need to replace these controls and supporting code with the necessary controls found under the Login section of the Visual Studio toolbox. A working example of how to access user detail using ASP.NET login controls and membership is provided in the MemebrshipExample folder of the web application. You will have to research and implement the other controls required to create/edit users if you pursue these bonus marks.