Welcome, Bienvenidos!!
To view these pages you must login first. If you don't have an account, it's as simple as taking a few seconds to register.
Then you get to view all the neat buttons and stuff behind the scenes here...
So there is an underlying theme once you get in and start viewing the content. It's not hard to figure out. Each page has some fun
features of ASP.NET and C# programming. Each page should have an explanation/instructions detailing how to do what I've done on that page.
- Page 1 - Basics
- Page 2 - File I/O
- Page 3 - Calculator
- Page 4 - Poof! Items appear out of nowhere
- Page 5 - Database
Necessary Downloads/Installations
- Visual Web Developer 2010 Express
- Visual Web Developer 2010 Express SP1(includes sql server compact 4.0 + Tools)
- SQL Server 2008 Express
*The built-in login capabilities use SQL Server 2008 Express by default.
*Use SQL Server Compact 4.0 when creating small( <= 4GB ) databases.
Login/Protected files
- There is a built in login system that is added when you create a new WebSite.
- In the Account folder will be: Login, Register, ChangePassword, and ChangePasswordSuccess
- Any file added to this folder will become protected and you must be logged in to view
- Reccommended to only include files relevant to Account/User/Login here
- For protecting other files you can simply:
- Create a new folder(call it Protected)
- Add any files you want to protect into here
- Click (at the top of VWDExpress2010) Website -> ASP.NET Configuration
- Go to the Security tab, click create access rules at the bottom right
- Click on the Protected folder, click the Deny radio button, click Anonymous Users(as the ones who can't access)
- This will make it so any file added to your protected folder now requires the user to be logged in to view them
The links at the top are viewed by a LoginView, which only lets you see certain information depending on whether you are logged in
or not. Anything in AnonymousTemplate /AnonymousTemplate tag can be seen by anyone and anything in LoggedInTemplate /LoggedInTemplate can only be seeen
by logged in users. The links displayed now are in the AnonymousTemplate and more are added when you login.