CSE686 - Internet Programming
Lecture #3 - Asp.Net Programming Model
Revised: 08 June 2010
Web Resources:
Color Lab
Color Codes
HTML tags
Everything HTML
XML, HTML, Scripting
Win32, COM, MFC
webdeveloper.earthweb
devx...
W3Schools
Web Developer's Virtual Library
World-Wide Web Consortium
WebReference
devCentral
Office Hours:
Instructor & TAsContent:
This lecture is concerned with the Active Server Pages programming model. We will see that
Web Applications are built in much the same way as WinForm programs.
- Syllabus describes topics to be covered,
reading material for you to digest before coming to class, and due dates
for the assigned projects.
- Final Project #1,
Final Project #2,
Final Project #3
- Running Projects downloaded from College Server
-
ASP Tutorials and References:
- Asp.Net:
- Migration from Asp to Asp.Net:
- Page class and User Controls:
- Examples useful for Final Project:
- Page Controls:
- Experiments with Page Contents:
- More Asp.Net Details:
- Lab Assignment #3
Visual Studio (both 2008 and 2010) makes it easy to run Asp.Net applications - those with an aspx extension. However,
it turns out that you cannot run Asp scripts - those with an asp extension - in Visual Studio (neither VS2008 nor VS2010).
However, you can edit them easily in Visual Studio 2010 and run from IIS. Here are the steps:-
Set up IIS to serve Asp applications. Our TA Vinay has put together a description of how to do that
here.
-
Use note pad or the Visual Studio editor to create your Asp application (use a .asp extension).
-
Create a virtual directory for your asp application. The presentation
here shows you how to do that for either Vista or Win7.
The presentation here shows you how to do that for Windows XP,
which is what the computers in CST 3-201 are running.
-
Now, open a browser to the path: http://localhost/VirtualDirectoryName/AspFileName.asp. You should see your application running.
If you get errors the browser may silently do nothing or display an error page. If that happens, comment out or remove the scripting
parts and make sure you can see the rendering of the application's html. Now piece by piece add back in the scripting parts,
viewing the results in the browser at each step.
If you use the Chrome browser, on errors, you should be redirected to web pages that provide some resources for debugging.
- Lab #2 Review
- Lab #3 Review