得到错误“无法找到资源。”但我的.aspx页面出现在我的解决方案中 [英] got error "The resource cannot be found." but my .aspx page is present in my solution
本文介绍了得到错误“无法找到资源。”但我的.aspx页面出现在我的解决方案中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的管理页面源代码是
<%@ 主 语言 = C# AutoEventWireup = true CodeFile = 管理员.master.cs 继承 = 管理员 %>
< !DOC TYPE html PUBLIC - // W3C // DTD < span class =code-attribute> 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 = 服务器 >
< title > < asp:ContentPlaceHolder < span class =code-attribute> ID = 标题 runat = 服务器 >
< / asp:ContentPlaceHolder > < / title >
< link href = 样式/ admin.css rel = stylesheet type = text / css / >
< asp:ContentPlaceHolder id = head runat = server >
< / asp:ContentPlaceHolder >
< / head >
< body >
< 表单 id = form1 runat = 服务器 >
< div id = 标题 >
< div id = logo >
< h1 > < a href = http://www.xyz.com > xyz < span class =code-keyword>< / a > < / h1 >
< span class =code-keyword>< h2 > < a href = http://www.xyz.com/ id = mimaratha > www.xyz.com < / A 跨度> > < / h2 >
< / div < span class =code-keyword>>
< div id = nav >
< ul >
< li > < a href = 〜/ Admin / Home.aspx > 主页< / a > < / li >
<% - < li>< a href =〜/ Admin / Home.aspx>主页< / a>< / li> - %>
< li > < a href = # > 肥大ers < / a >
< ul >
< li > < a href = 〜/ Admin / Department.aspx < span class =code-keyword>> 部门< / a > < / li >
< li > < a href = 〜/ Admin / Designation.aspx > 指定< / a > < / li >
< / ul >
< / li > ;
< li > < a href = 〜/ Admin / Employee.aspx > 员工< ; / a > < / li >
< ; / ul >
< / div >
< / div >
< div >
< asp:ContentPlaceHolder id = ContentBody runat = 服务器 >
< / asp:ContentPlaceHolder >
< / div >
< / form >
< / body >
< / html >
解决方案
亲爱的Amit查看以下链接:
https://support.microsoft.com/en-us/kb/ 894670 [ ^ ]
my admin page source code is
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Admin.master.cs" Inherits="Admin" %>
<!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><asp:ContentPlaceHolder ID="Title" runat="server">
</asp:ContentPlaceHolder></title>
<link href="Styles/admin.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div id="header">
<div id="logo" >
<h1><a href="http://www.xyz.com">xyz</a></h1>
<h2><a href="http://www.xyz.com/" id="mimaratha">www.xyz.com</a></h2>
</div>
<div id="nav">
<ul>
<li><a href="~/Admin/Home.aspx">Home</a></li>
<%-- <li><a href="~/Admin/Home.aspx">Home</a></li>--%>
<li><a href="#">Masters</a>
<ul>
<li><a href="~/Admin/Department.aspx">Department</a></li>
<li><a href="~/Admin/Designation.aspx">Designation</a></li>
</ul>
</li>
<li><a href="~/Admin/Employee.aspx">Employee</a></li>
</ul>
</div>
</div>
<div>
<asp:ContentPlaceHolder id="ContentBody" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
解决方案
Dear Amit check the below link:
https://support.microsoft.com/en-us/kb/894670[^]
这篇关于得到错误“无法找到资源。”但我的.aspx页面出现在我的解决方案中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文