ASP Code Samples
Writing ASP pages is more than just using a scripting language to create dynamic Web content. The reach of ASP goes much farther than a Web page. You can access compiled code from an ASP page by calling COM components that already exist (such as the AdRotator utility components), or by calling COM components that you create (see COM Component Code Samples). You can also use transactions in ASP pages.
There are adequate code examples in the ASP reference pages and other sets of documentation. Listed below are various reference sections you might be interested in viewing for code examples:
Description of Task | Related Documentation |
---|---|
Using Scripting Languages in ASP - using VBScript and JScript to write ASP pages | Windows Script Technologies SDK and |
Using the ASP Built-in Objects - use the ASP built-in objects to access client information and configure ASP settings. | Building ASP Pages and |
Useful Components Installed with Windows - use the Windows File Access component, the Channel Definition Format (CDF) component, and the Collaborative Data Objects (CDO) to send e-mail. | The topic called FileSystemObject Object in the Windows Script Technologies SDK,
CDF Reference on MSDN, and Introduction to CDO for NTS on MSDN |
Connecting to Databases from ASP Applications - use ActiveX Data Objects (ADO) to connect to databases and display the data contained therein. | Accessing a Data Source,
ADO Reference on MSDN |
Transactions in ASP - write transactional ASP pages whose transactions can be reversed if one of them fails. | Understanding Transactions, and |
Using MSMQ with ASP - use Microsoft Message Queue (MSMQ) to ensure delivery of your messages. | Microsoft Message Queuing and |
Important Code examples in the documentation are provided for educational purposes only. They are not intended to be used in a production environment, have not been tested in a production environment, and Microsoft does not provide technical support for them.