Homework Assignment #7
Most students completed this assignment in-class
in class #7 on 3/26/2007.
Programming homework.
to get credit for this assignment,
demonstrate your program for the instructor in class.
get a dir from the U:\Moritsugu_Steven\cs206-1
put this on your floppy or other media to take with you
start visual studio 2005
File
Open Web site
location: A:\cs206-1\RegisterUser2005
in Soln Explorer,
you should see the files for the RegisterUser2005 application
Register.aspx is the design file for the first web screen
Register.aspx.vb is the code-behind file for that form
dbl click on Register.aspx
click Design (at the bottom)
to see the form from p 59
dbl click Register.aspx.vb to see the code
in soln expl
dbl click app_code
dbl click userIO.vb
notice it tries to write to this file:
C:\Murach\ASP.NET\Files\Users.txt
change the file reference to
A:\users.txt (or whatever you want)
Start without debugging
instead of the application starting normally
you will see a web page with a dir listing.
because it does not know what web form to start with.
to correct that
close the web page
in vis studio
soln expl
right click: register.aspx
click set as start page
start without debugging
run the application,
enter 2 users and register them.
use notepad to look at the text file
that you specified on your A: drive
After registering a couple of users,
raise your hand and show me your text file
to get credit for this homework.