国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

.net中使用xsl文件作為導(dǎo)航菜單的小例子_.Net教程

2024-07-10 12:52:18
字體:
供稿:網(wǎng)友

推薦:幾種判斷asp.net中session過期方法的比較
幾種判斷asp.net中session過期方法的比較,需要的朋友可以參考一下

復(fù)制代碼 代碼如下:www.CuoXIn.com

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="testweb.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Xml TransformSource="XSLTFile1.xslt" ID="minanva" runat="server"></asp:Xml>
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace testweb
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
minanva.DocumentContent = @"<站點(diǎn)導(dǎo)航列表 來訪員工=''>
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='設(shè)計(jì)計(jì)劃' 站點(diǎn)編號(hào)='EPM' 站點(diǎn)鏈接='../NWEPDI.EPM.WEB/../Project/ProjectList.aspx?QueueType=EPM0101' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='設(shè)計(jì)作業(yè)' 站點(diǎn)編號(hào)='DDM' 站點(diǎn)鏈接='../MoEngineer/ProjectMgr.aspx' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='設(shè)計(jì)流程' 站點(diǎn)編號(hào)='DFM' 站點(diǎn)鏈接='../MoFlow/CWorkItemList.aspx?QueueType=DFM0101' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='印務(wù)管理' 站點(diǎn)編號(hào)='PPM' 站點(diǎn)鏈接='../MoPrint/PrintMgr.aspx?QueueType=PPM0101' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='工時(shí)管理' 站點(diǎn)編號(hào)='WHM' 站點(diǎn)鏈接='../MoWorkHour/HourMgrPrj.aspx?QueueType=WHM0103' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='電子歸檔' 站點(diǎn)編號(hào)='ARC' 站點(diǎn)鏈接='../MoArchieve/ProjectMgr.aspx?QueueType=ARC0101' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='統(tǒng)計(jì)報(bào)表' 站點(diǎn)編號(hào)='SSM' 站點(diǎn)鏈接='../MoReports/ReportView.aspx?QueueType=SSM0101' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='資料管理' 站點(diǎn)編號(hào)='DAM' 站點(diǎn)鏈接='../MoDocument/ProjectFileMgr.aspx?QueueType=DAM0101' />
<站點(diǎn)導(dǎo)航 站點(diǎn)名稱='系統(tǒng)管理' 站點(diǎn)編號(hào)='DSM' 站點(diǎn)鏈接='../MoAdmin/CommonRuleList.aspx?QueueType=DSM0101' />
</站點(diǎn)導(dǎo)航列表>";
}
}
}


<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="http://站點(diǎn)導(dǎo)航列表">
<div>
<ul>
<li>導(dǎo)航</li>
<xsl:for-each select="站點(diǎn)導(dǎo)航">
<li>
<xsl:value-of select="@站點(diǎn)名稱"/>
<xsl:attribute name="id">
<xsl:value-of select="@站點(diǎn)編號(hào)"/>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="@站點(diǎn)鏈接"/>
</xsl:attribute>
</li>
</xsl:for-each>
</ul>
</div>
</xsl:template>
</xsl:stylesheet>

分享:關(guān)于asp.net 自定義分頁控件
本篇文章,小編將為大家介紹,關(guān)于asp.net 自定義分頁控件,有需要的朋友可以參考一下

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 成安县| 浑源县| 沧州市| 丹东市| 藁城市| 玛纳斯县| 虎林市| 桃园县| 新闻| 烟台市| 肇源县| 永新县| 利津县| 五河县| 来安县| 濮阳县| 池州市| 玉门市| 沂水县| 隆尧县| 沈丘县| 平阳县| 麻栗坡县| 桂平市| 东光县| 瓦房店市| 盐边县| 吐鲁番市| 姜堰市| 石狮市| 永新县| 固始县| 德格县| 高阳县| 南宫市| 会昌县| 商水县| 余干县| 青阳县| 太湖县| 集安市|