Special symbols in Asp.net

Source: Internet
Author: User

Here we will talk about three important special symbols in Asp.net.

(1) <% @ %> This is used to reference the user control and import the namespace. It is usually placed at the top of the page.

(2) <% # %> This is displayed only after data is bound. It is used for data binding controls.

(The other three data binding methods are usually used together with <% # %>;

1. the eval () method is a static one-way (read-only) method. Therefore, the eval function is used for one-way (read-only) binding. This method uses the value of the data field as a parameter and returns it as a string.

2. The BIND () method supports the read/write function. Therefore, the BIND function is used for Bidirectional (updatable) binding. This method retrieves the value of the data-bound control and submits any changes to the database.

3. The XPath () method supports XML data sources .)

(3) <% = %> it can be displayed without data binding. Like <% # %>, you can call the C # method.

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.