ASP.Net Building the Login Control Pages
At this point, you need to have MS Visual Web Developer or MS visual Studio installed. - Don't continue until
you have met this requirement.
For this excercise, you'll need to create two sub-directories and five .aspx files along with each of the .aspx's
'VB' (visual basic) files.
Here at Jtech, we use 'Visual Basic' for the 'back end' programming. - I also like to put my 'code' in a separate
file for each page. - Oh, you can put the code right into the .aspx page but I think it makes the .aspx page harder
to read for the developer. - But don't worry, when you create a new page (i.e. 'test.aspx') in VWD, another file
('test.aspx.vb') is automatically created for you.
While we create .vb pages for each .aspx file, only two of the .vb files will be used for anything in our demo.
We also have one '.css' file (cascading style sheet) with a very few items to govern the overall look of our
demo pages.
All these pages are fairly small so don't worry. - And we will not be using any images in our demos to help make
things simpler.
Note: You DO NOT have to use the directory names we use (although recommended). - If you do dream up your own
directory structure, you'll have to make modifications to the menus in 'sample.aspx'.
Let's get started.
Let me post the 'asp directory/file tree' for quick reference:

The '.zip' file. - As promised, here is the .zip package containing all the files we've
discussed so far (plus a couple more). - Get the file here:
ASP_Files_pt1_v1.zip
BEFORE INSTALLING THESE FILES - READ THIS!!!!
You'll want to unzip the files to a temporary folder on your C:\ drive or desktop.
DOUBLE CHECK to make sure you presently have no folders/files with the same names that is
in the .zip package. - You may wipe out something on your site inadvertently.
If you do, find out why and see if you can do some re-naming or appending (especially with the
'web.config' and 'default.aspx' files.
You CANNOT simply copy the files to your sites 'httpdocs' folder using Windows Explorer. - If
you try, you WILL NOT pick up the correct permissions for the files and they probably will not
work. - Instead, you have to use 'Add Existing Item' from within VWD.
However, VWD's 'Add Existing Item' tool WILL NOT add a sub-directory. - These have to be
created manually prior to adding files.
Here's how to do it.
Unzip the .zip package to a temp folder on your C:\ drive or desktop. - Duh!
In VWD, create a new folder called 'private' under your server's root. - Create another
folder called 'admin' under the folder 'private'.
In VWD, right-click your server's root and click on 'Add Existing Item'. - Navigate to whre you
un-zipped the files and select JUST THE FILES (no folders) from the 'root' of the temp
folder & click 'Add'. - Now do the same with 'private', then with 'private/admin'. - Remember that
each '.aspx' file will have a corresponding '.vb' file. - Don't forget to get these as well.
|