Dancers on the htc--browser

Source: Internet
Author: User
Tags object model
For a long time has been for the work of the pages of the tedious and messy and distressed, do b/s many times the pain is doing in the performance layer of this piece, business logic and Data layer processing is much easier. Why? Because can not reuse, a large number of CSS and JavaScript and HTML staggered together, and then mixed with some program code, maintenance only painful feeling, often do not want to move, do not want to change. At the same time want the client's operations as beautiful and easy to use, JavaScript is not possible. In doing. NET when this feeling is not strong, because. NET has already made the control very perfect, the common control also has. Until you encounter JSP ...
  
Based on. NET development experience, I very want to put the code on the page can write more clearly, but the JSP inside no server control, suddenly thought. NET inside the TreeView control is made using HTC, so from this start I entered the Hall of HTC.
  
HTC (HTML Component)
  
HTML Component
  
Through continuous study and research, I think he is based on scripting object-oriented programming technology. Because JavaScript and HTML are good foundations, they can be used quickly. The DOM document Object model will be the main point of application in HTC.
  
The benefits of using HTC are huge, the server-side program does not need to consider the problem of style, all styles can be set in HTC, the server only need to load data, and then HTC according to set properties to show the desired effect, I am doing a TreeView control, Even the recursion is written in the HTC, the server is only the data out.
  
Another advantage is reuse, we adopt a unified HTC control, bringing the style of consistency, while saving a lot of coding time, a lot of programmers do not know JavaScript can be very easy to use. Sometimes thinking about something like mvc,struts the benefits of technology in some ways may not be as good as HTC, because the performance layer has always been the heaviest.
  
This is my little feeling, hope to be able to bring a little help to everybody's work.
    
Here's an MSDN site to learn about HTC, and I'll write some when I have time.
     http://msdn.microsoft.com/library/default.asp?url=/workshop/components/htc/reference/htcref.asp

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.