Simple data binding

Source: Internet
Author: User

After reading a lot of blog posts on the internet, I just saw that I didn't do the exercises and the results were not good. I still spent less time practicing simple Eval Data Binding to enhance my memory. Insus. NET is demonstrated in two cases respectively.


Look at the binding syntax below. You can convert the container to the category of the current page and obtain the public attribute.




Go to. cs to see the Syntax:


Check the effect after running:

 

In the first image above, you need to convert the variable Container into the category of the webpage, indicating that its category is Page, so you can simplify its writing:

 


First look at the binding syntax and use the Eval () method to bind fields directly.



. Cs:


Run to see the effect:



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.