Complex asp.net server control tuning Tips

Source: Internet
Author: User

when creating or modifying a complex ASP.net server-side control, a large amount of time is compiled, waiting for JIT, modification, compilation, JIT ... In such a loop, and two compilations are often time-consuming. In particular, when a control is integrated into a page, a small deviation in the layout effect is a very uninteresting and time-consuming task.

If you can directly modify the output of HTML, it is likely to be more quickly to find the problem. Unfortunately, the HTML code that comes out of the browser save as is obviously not very valuable to modify. Because it was just a minor layout adjustment, the new layout problem of the Save as out page might be more serious than the problem itself.

so you can simply copy the code out of the view source and save it as an HTML file? Then we will find that the page inside all through the relative path of the resources are lost back, such as what pictures ah, JavaScript ah, and so on, missing these things, the page also lost the value of adjusting the edit.

in HTML, there is a base tag, this element seems to be only in the modal window submission page to avoid pop-up new windows, useful to, usually seem to have little to see the Web page with this element. This base is useful when debugging HTML code. For example, your asp.net page is /index.aspx, and this index.aspx shows a lot of pictures or JavaScript resources referenced by relative paths, and then we pass the view Source saves its HTML code locally as: Index.htm file, and only add <base href=//> To its . When we open this index.htm again, we will find that the effect is the same as the open /index.aspx , all the pictures and scripts are loaded normally, this time in IE Tool Bar With the help of the DOM viewing tool, you can easily adjust the appearance of the page or control output by modifying the HTML directly, and then change it in the server-side code after you find the error.

please contact the site, timely note your name, contact email: Post@chinaz.com.



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.