| |
|
|
| |
|
|
| |
| |
|
|
BA 372 - ASP.Net Lab
This lab contains exercises that familiarize you with ASP.Net and
its deployment and development with Visual Studio 2005. ASP.Net or
Active Service Pages is a Microsoft technology for developing and
deploying dynamic Web sites; i.e.,
Web sites of which the contents is dynamically determined when
requested by a user or program.
In this lab, we'll only work with ASP.Net. In the older, non.Net versions of ASP, ASP code segments would be embedded in HTML pages. When the page was requested from the server, Microsoft's IIS web server parsed the HTML and ASP. Whereas the HTML was routed straight through, the ASP parts of the code got interpreted and executed. Its results, HTML, text, XML, etc., were then routed back to the requester. This method is very similar in nature to other embedded-HTML languages such as PHP (we'll get exposure to PHP in our LAMP lab).
However, in the newer, .Net implementations of ASP, ASP is used as a
technology to fuse nonweb code; e.g.,
functions and class libraries written in .Net languages with Web
contents without the programmers having to worry a great deal about how
that fusion actually takes place.
A word of warning. The concepts and
materials you'll encounter in this lab are quite 'involved,' meaning
that there's a whole world of technology and programming concepts
behind them. Many of these concepts we have seen and explored; e.g., VB.Net, HTTP, HTML, OOP, etc. However, in this ASP.Net
world, they really all get fused into a cohesive whole. When you work
this lab, work it carefully and slowly!! Make sure that in your mind
it's clear how things work. Do not!! just go through the movements of
cutting and pasting code. Successful completion of Assignment 3 hinges on
proper
understanding of this lab.
One of the issues that makes web-based
programming a bit trickier than nonweb-based programming is that in
order to run a web-based program, you need a web server through which
to request the program. In many cases, your company web server will not
be available for this type of development runs--after all, we do not
want the production
and development side
of the house to be intermixed--so traditionally you'd have to install a
web server on your development machine or copy files over to a shared
web server to do web development. Especially in lab situations such as
ours, this can be a real hassle and hence, we were all very happy when
it was announced that each copy of VS2005 has its own, built-in Web
server that is used to run .Net web-based programs during development.
The server is automatically started when running or debugging an
ASP.Net page.