简体   繁体   English

从母版页到aspx页调用DIV

[英]Calling DIVs from master page to aspx page

On master page i have 2 class which needs to be inherited on test.aspx 在母版页上,我有2个类需要在test.aspx上继承

<div class="1"> 
   <div class="2">

    </div>
 </div>

And i have one contentplaceholder, how will i inherit these div on to test.aspx page ? 而且我有一个contentplaceholder,我将如何继承这些div到test.aspx页面上?

<div class="1"> 
   <div class="2">
<asp:ContentPlaceholder  attribute goes here></asp:ContentPlaceholder>
    </div>
 </div>

Create a new webform and set master page to the said one. 创建一个新的Web表单并将主页设置为上述页面。 The two divs and its classes will automatically get called. 这两个div及其类将自动被调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM