|
| Previous < 14 15 16 17 18 19 20 21 23 > Next |
|
ASP enabled Web server provides a number run-time objects as part of the server side scripting environment:
- Request: An object holding information the client sends to the server as an HTTP request.
- Response: An object holding information the server sends to the client as an HTTP response.
- Server: An object holding information common to running virtual directories.
- Application: An object holding information common to all running HTTP sessions under a single virtual Web directory.
- Session: An object representing a sequence of HTTP requests and responses from one client system.
|
|
|
|
Re-usable code is a boon to developers. It's easy to manage, because it only needs to be written once; then, every time you want to do the same thing, you just call it up again. However, it does require a bit of thought and planning up front. John Puddinfoot walks us through several simple applications for re-usable code in ASP, focusing on functions.
As with every design decision, the choice to develop re-usable code is a matter of trade-off. Making the decision to develop re-usable code will help to produce more robust and maintainable solutions, but may require a little more time and thinking up front.
|
|
|
|
If you are getting into web development, especially with ASP programming, include files are going to become one of your best friends. In essence, an include file allows you to write an ASP script one time and then include it in multiple web pages without having to rewrite all the code.
So when and how do you do this? One of the most basic examples is placing your database connection within an include statement and then using a simple include statement to include your connection string in your web pages.
First, you create a folder named /includes within your root directory.
Next, you create a new file named connection.asp and save it within your new /includes folder.
|
|
|
|
The download to this tutorial has 4 working examples of Web Wiz Email Form's (CDONTS) which you can use to allow your web site visitors to send their comments or enquiries to your e-mail address or send e-mails to their own friends form your site.
However, I not going to go into how the form is written as it uses standard HTML and JavaScript to capture the users details. Instead I'm going to concentrate on the actual methods and properties the CDONTS NewMail object uses to format and then send the e-mail.
CDONTS stands for 'Collaboration Data Objects for Windows NT Server' and as the name suggest it is for NT, sorry Win9x users you don't have this component. The CDONTS component is installed when you install IIS on NT4 and Windows 2000. Although the component will run on Windows XP, Microsoft have decided to remove the component from IIS 5.1 on Windows XP, so you will have to track down a copy of the cdonts.dll and register it on the IIS web server.
|
|
|
|
A directory of ASP tutorials, applications, scripts, components and articles for the novice to professional developer. A lot of people have the need to protect specific pages in their webs, rather than entire folders. Using web server permissions requires a few things that are out of your hands, and require the cooperation of your hosting service to set up (NT user accounts, etc).
This tutorial, which uses ASP, illustrates using a database (in this case Access) to store User Names and Passwords, and accessing the database to allow or deny access to the pages in question.
If you have Expression Web, creating an ASP page can be simple . All you have to do is create your ADO data objects, run your query, and use Server-Side scripting tags to create your database column values, if/else conditional statements, and whatever else your imagination and the "magic" of ASP leads you to create
|
|
|
|
| Previous < 14 15 16 17 18 19 20 21 23 > Next |
|
|
|
|