Asp.net 图像按钮显示在解决方案中,但不显示在我的托管网站上

Asp.net 图像按钮显示在解决方案中,但不显示在我的托管网站上,asp.net,button,visual-studio-2013,uiimage,Asp.net,Button,Visual Studio 2013,Uiimage,我正在创建一个在线公文包,当我在Visual Studio上使用Google Chrome构建解决方案进行测试时,导航栏会起作用,但是当我发布我的网站时,这些按钮就不存在了,有人能解释一下这个错误吗 <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/HomeTag.png" style="margin-left: 115px; margin-top: 16px" PostBackUrl="~/Homep

我正在创建一个在线公文包,当我在Visual Studio上使用Google Chrome构建解决方案进行测试时,导航栏会起作用,但是当我发布我的网站时,这些按钮就不存在了,有人能解释一下这个错误吗

<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/HomeTag.png" style="margin-left: 115px; margin-top: 16px" PostBackUrl="~/Homepage.aspx" />
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/AboutTag.png" style="margin-left: 146px" PostBackUrl="~/About.aspx" />
<asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/PortfolioTag.png" style="margin-left: 158px" />
<asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Images/MoreWorkTag.png" style="margin-left: 114px" />
<asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Images/ContactTag.png" style="margin-left: 90px" />

您是否已将图像上载到网站?它在你期望的目录中吗?您可以尝试手动导航以查看图像,以查看它们是否如您所期望的那样存在:

"{your-website-url}/Images/ContactTag.png"

是的,图像在图像文件夹中