我在这个文件中有一个 cshtml 文件我有一个隐藏字段和静态值。我想将其作为 XML 文件读取以查找隐藏字段。事实上,我不喜欢将它作为文本文件打开并搜索它。
这是我文件的一部分,我想读取隐藏文件:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" content="Soha Application" />
<title>@ViewBag.MeetingTitle</title>
<link href="@Url.Content("~/Content/themes/Default/main.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/Default/fa-IR.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
</head>
<body>
<div class="page">
<header>
**<input id="SkinId" type="hidden" value="008BBF4768861284321640F895D68DA1" /> <!-- Please dont change this Code -->**
<div id="title">
<h1>@ViewBag.MeetingTitle</h1>
</div>
<nav>
</nav>
</header>