Hidden ASP: The Panel name cannot be found

Source: Internet
Author: User
Recently, a second-level tree was implemented. Considering the customer's lack of refresh, datalist was used to simulate a tree. The specific idea is that datalist is nested with a datalist to bind a second-level datalist In the first-level datalist binding event, that is, the findcontrol method. At the same time, register the client script in level-1 datalist. As follows:



<SCRIPT>

Function menuchange (OBJ, menu)

{

If (menu. style. Display = "")

{

OBJ. src = "../images/plus.gif ";

Menu. style. Display = "NONE ";

}

Else

{

OBJ. src = "../images/minus.gif ";

Menu. style. Display = "";

}

}

</SCRIPT>

Simulation diagram:

The problem is that if I set ASP: panel to invisible, the name of ASP: Panel will not be found,CodeNo. Some values hidden in Asp.net can be found, such as ASP: Label. Ms is designed to reduce the amount of code.

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.