[英]How can I make a view of a Controller as Default page in ASP.Net core 2.1 Web API?
[英]how can i make fixed tree view in asp.net
我在asp网站上有treeview时,单击链接的节点会将整个页面重定向到treeview,而不会保留到该页面。 但是我只想更改主页,树状视图必须像Windows资源管理器一样保留在所有页面中。 我正在使用asp.net网站,请帮助我该怎么做?
这是我的treevew。
Home
page1
page2
page3
page4
创建一个在表中具有树视图的母版页,如下所示
<table border="0" cellspacing="0" cellpadding="0" id="content-container" style="width: 1016px; height: 407px;">
<tbody>
<tr>
<td id="content-left" style="width: 200px; height: 424px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-bottom-color: buttonface; border-top-color: buttonface; border-right-color: buttonface; border-left-color: buttonface;">
<!--
LEFT COLUMN
-->
<br />
<asp:Panel ID="Panel1" runat="server" Height="455px" Width="220px">
<asp:TreeView ID="tvNodes" runat="server" Height="448px" Width="215px" ShowLines="True">
</asp:TreeView>
</asp:Panel>
</td>
<td id="content" style="width: 736px; height: 424px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-bottom-color: buttonface; border-top-color: buttonface; border-right-color: buttonface; ">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server" >
</asp:contentplaceholder>
</td>
</tr>
</tbody>
</table>
并将页面加载到节点单击事件上的ContentPlaceHolder1上。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.