ASP.NET中iframe框架點擊左邊頁面鏈接 右邊顯示鏈接頁面內(nèi)容
更新時間:2016年07月27日 11:06:05 作者:小白桃要去遠方
這篇文章主要介紹了ASP.NET中iframe框架點擊左邊頁面鏈接,右邊顯示鏈接頁面內(nèi)容的實現(xiàn)代碼,感興趣的小伙伴們可以參考一下
ASP.NET中iframe框架點擊左邊頁面鏈接,右邊則顯示鏈接頁面內(nèi)容,具體實現(xiàn)內(nèi)容如下
先看看效果圖:

首先是主頁面main.aspx
<body style="background-color: #AFEEEE">
<form id="form1" runat="server">
<div>
<center>
<h1>
后臺管理界面
</h1>
<span style="float: right;">
<asp:HyperLink ID="HyperLink1" runat="server" Style="text-align: center" NavigateUrl="Default.aspx">返回首頁</asp:HyperLink></span>
<table border="0" width="1180px" cellpadding="0" class="main-table">
<tr>
<td align="center">
<iframe id="Left" name="Left" src="Left.aspx" class="inset-table" width="188px" height="730"
align="middle"></iframe>
</td>
<td align="left">
<iframe id="Right" name="Right" src="AddNews.aspx" class="outset-table" width="950"
height="730" align="middle"></iframe>
</td>
</tr>
</table>
</center>
</div>
</form>
</body>
然后是左邊頁面Left.aspx
<form id="form1" runat="server">
<div>
<table style="width: 180px;" cellspacing="0" cellpadding="0">
<tr>
<td class="style1 ">
<div class="titleSystemName">
導航欄</div>
</td>
</tr>
<tr>
<td>
<asp:TreeView ID="TreeView1" runat="server" ImageSet="XPFileExplorer" NodeIndent="15"
Width="155px">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
<SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
VerticalPadding="0px" />
<Nodes>
<asp:TreeNode Text="新聞類別1" Value="新聞類別1">
<asp:TreeNode NavigateUrl="~/AddNews.aspx?id=2" Target="Right" Text="添加新聞" Value="添加新聞">
</asp:TreeNode>
<asp:TreeNode NavigateUrl="~/ManagerNew.aspx?id=3" Target="Right" Text="刪除/編輯新聞" Value="刪除/編輯新聞">
</asp:TreeNode>
<%-- <asp:TreeNode NavigateUrl="~/UpdataNew.aspx?id=2" Target="Right" Text="更新新聞" Value="更新新聞">
</asp:TreeNode>--%>
</asp:TreeNode>
<asp:TreeNode Text="用戶管理" Value="用戶管理">
<asp:TreeNode NavigateUrl="~/UserManager.aspx" Target="Right" Text="管理用戶" Value="管理用戶">
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
<NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
NodeSpacing="0px" VerticalPadding="2px" />
</asp:TreeView>
</td>
</tr>
</table>
</div>
</form>
最后是右邊的頁面AddNews.aspx,這個頁面就可以插入自己需要的頁面鏈接了。
以上是我在學習asp的過程中學習到的一個知識點,希望對大家有用。
您可能感興趣的文章:
- asp.net中MVC借助Iframe實現(xiàn)無刷新上傳文件實例
- asp.net在iframe中彈出信息并執(zhí)行跳轉問題探討
- ASP.NET頁面借助IFrame提交表單數(shù)據(jù)所遇到問題的解決方法分享
- asp.net 文件上傳與刷新與asp.net頁面與iframe之間的數(shù)據(jù)傳輸
- ASP.NET中使用IFRAME建立類Modal窗口
- asp.net省市三級聯(lián)動的DropDownList+Ajax的三種框架(aspnet/Jquery/ExtJs)示例
- asp.net 學習之路 項目整體框架簡單的搭建
- asp.net GridView中超鏈接的使用(帶參數(shù))
- ASP.NET 鏈接 Access 數(shù)據(jù)庫路徑問題最終解決方案
- asp.net實現(xiàn)生成靜態(tài)頁并添加鏈接的方法
相關文章
asp.net checkbox 動態(tài)綁定id GridView刪除提示
asp.net checkbox 動態(tài)綁定id,需要的朋友可以參考下。雖然簡單但不知道挺麻煩的。GridView刪除提示2009-10-10
ASP.NET MVC3 SEO優(yōu)化:利用Routing特性提高站點權重
這篇文章主要介紹了ASP.NET MVC3 SEO優(yōu)化:利用Routing特性消除多個路徑指向同一個Action,從而提高站點權重,需要的朋友可以參考下。2016-06-06
.NET醫(yī)院公眾號系統(tǒng)線程CPU雙高問題分析
這篇文章主要介紹了.NET醫(yī)院公眾號系統(tǒng) 線程CPU雙高分析,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-04-04
使用asp.net改變網(wǎng)頁上圖片顏色比如灰色變彩色
要能在網(wǎng)站上改變圖片的顏色,比如灰色的變成彩色,彩色的變成灰色多好啊,下面是通過asp.net實現(xiàn)的,有需求的朋友可以參考下2014-08-08

