刷新后无法找到资源

时间:2017-07-03 02:28:20

标签: asp.net

亲爱的,

Ctrl_Menu.ascx中的代码正在导航到“帐户”页面

<li class="">
                    <a href="../EmployeeSchedule/Administration/Account/AccountsView.aspx" title="Bootstrap Tables">
                      <i class="fa fa-puzzle-piece"><span class="overlay-label greensea80"></span></i>
                     Accounts
                    </a>
                  </li>

它工作正常,但是当我在accountsView.aspx中时,如果我再次按下它,它将显示找到源插件。 错误:请求的URL:/EmployeeSchedule/Administration/EmployeeSchedule/Administration/Account/AccountsView.aspx

我不知道为什么要复制这个“EmployeeSchedule / Administration”

更清楚一点,这是Ctrl_Menu.ascx的代码,它在ctrl_Header.ascx中注册,ctrl_Header.ascx在主页面中注册。

<%@Control Language="C#" AutoEventWireup="true" CodeFile="ctrl_Menu.ascx.cs" Inherits="ctrl_header" %>
<ul class="nav navbar-nav side-nav" id="navigation">

              <li class="collapsed-content">
                <!-- Collapsed content pasting here at 768px -->
              </li>
              <li class="user-status status-online hide" id="user-status">
               <div class="profile-photo">
                 // <img src="images/profile-photo.jpg" alt= /> 
                </div>
                <div class="user">
                  mnhgcjhgcjhgfjhgf <strong>jhgfjhgf</strong>
                  <span class="role">Administrator</span>

                </div>
              </li>
     <li class="">
                    <a href="../EmployeeSchedule/Administration/Account/AccountsView.aspx" title="Bootstrap Tables">
                      <i class="fa fa-puzzle-piece"><span class="overlay-label greensea80"></span></i>
                     Accounts
                    </a>
                  </li>
</ul>

谢谢

1 个答案:

答案 0 :(得分:0)

请尝试以下操作:

href="<%=ResolveClientUrl("~/EmployeeSchedule/Administration/Account/AccountsView.aspx") %>"