Recommended: Regular expression filtering html code function in asp HTML tags are considered complex things. We generally cannot filter them. Now we use regular rules to operate them. Students who need to learn can refer to this article. How to use
This article introduces the code of using asp to connect to SQLServer database instance. There are three connection methods: establishing a connection through ODBC DSN and establishing a connection through oledb and establishing a connection through driver. Let’s take a look at the first one.
Establish a connection through driver
Establish a connection through driver
Establishing a page connection to the database through driver does not need to create an ODBC DSN data source, but you must know the actual database file path or data source name (for example, SQLserver's database).
Write scripts to establish connections with database sources
ADO (ActiveX Data Objects) provides a Connection object that can be used to establish and manage connections between an application and an ODBC database. Connection objects have various properties and methods that can be used to open and close database connections. To write a database connection script, you should first create an instance of the Connection object, and then open the database connection.
Share: The difference between get post submission form in asp In the asp tutorial, there are 5 points in the difference between Get and Post methods of submitting forms when getting post is submitted. 1. Get is to get data from the server, and post is to transfer data to the server. 2. get adds the parameter data queue to the URL referred to by the ACTION attribute of the submitted form. The value corresponds to each field in the form one by one, and can be seen in the URL. Post uses the HTTP post mechanism to transfer each form