Connect to Data and create reusable Data commands

Source: Internet
Author: User
The new data environment provides simple commands to make Web applications data-driven. Complex SQL statements are not hidden in one. asp files are replaced by Global. display, maintenance, and reuse of the Application layer in the Data environment under the asa file. You do not have to modify the query on each page, but just modify the Data Command, these changes will be reflected in the file that references the data Command. At the same time, you can drag the field (fields) from the Command directly to the HTML or ASP page.
In Project Explorer, right-click the Project name and select the Add Data Connection menu command to create a new Data Connection. The DataEnvironment object is stored in Global. it appears under the asa node. Under DataEnvironment, you can find this data connection.
Add a reusable SQL statement under the DataEnvironment of the Data connection. You only need to right-click the project and select Add Data Command, you need to fill in its Data source for this Data Command on the property page.
Drag the field from DataEnvironment to the page. When each field is inserted to the page, DTC is also inserted.

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.