ASP-based programming FAQ

Source: Internet
Author: User
Tags odbc
ASP-based programming FAQ
    
It is very convenient to develop an Internet/Intranet MIS system based on ASP. First, it borrowed ADO technology and concepts and accessed the database through ODBC at the same time, it achieves full flexibility and multi-platform. In addition, because ASP uses VBS and JS scripting languages, it also ensures that most developers quickly enter the development process and reduce the learning process.
However, because ASP is based on the Internet/Intranet mode, it is different from the traditional C/S structure after all, so you should pay attention to some details during development. This article describes common problems and provides solutions.
    
Problem Description
    
A. ASP cannot be correctly run
    
When an ASP file is created and syntactically compliant, enter the following address in the browser or open the browser through the resource manager:
C: inetpubwwwroota. asp
The following error occurs: the website is required to have the "execute (script)" attribute; then, enter the address in URL format instead of DOS format. Therefore, correct these two errors.
    
B. The database cannot be accessed after the application moves.
    
This error occurs first in ODBC. If the ODBC data source is set correctly, you must note that the command to Open the database in ASP is correct: the Conn. Open parameter. If it is correct, check whether the global. asa file is used. This file is the configuration file for ASP to connect to the database. The content of this file is as follows:
<Script language = "VBScript" RUNAT = "Server">
'You can add special event handlers in this file that will get run automatically when special Active Server Pages events
'Occur. To create these handlers, just create a subroutine with a name from the list below that corresponds to the event
'You want to use. For example, to create an event handler for Session_OnStart, you wocould put the following code into this
'File (without the comments ):
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.