ASP. NET web pages (. aspx) Add User Controls (. ascx) without display issues

Source: Internet
Author: User
You can click the view to display the user control. However, when you add the control to a web form, it is shown as follows:


Run F5 and check the source code: code is available, but the page is blank.
Analyze the code and compare other web pages and code that can display the user control. It is found that only the following code is different: <script language = "JavaScript" src = ".. /.. /JS/test. JS "/>

Replace with: <script language = "JavaScript" src = ".../../JS/test. js"> </SCRIPT>

The problem is solved, and no problem is displayed during running !!

I hope that the experts will explain it below. I don't know whether the compiler has a problem or what is going on. I tried this many times (including re-compiling the project and aspnet_regiis-I.

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.