In the. NET background, you can set controls to display and hide.

Source: Internet
Author: User

For example:

The following shows only the content of the D1 layer. The content of the D2 layer is hidden.

<Div id = "d1" runat = "server"> d1 content </div>

<Div id = "D2" runat = "server" style = "display: none;"> D2 content </div>

If you need to change the front-end display slightly during operations in the background, it can also be implemented. You do not need to debug JS on the front-end (of course, JS can be fully implemented)

 

Add a server button to the page and in the event of the button:

D2.style. Add ("display", "Block ");
D1.style. Add ("display", "NONE ");

 

Check whether the front-end page is displayed. Tips !!!

 

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.