开发者

ASP.NET 2.0 VS2005 MasterPage doesn't always show an image

开发者 https://www.devze.com 2023-01-23 14:50 出处:网络
I have an ASP.NET application that uses a MasterPage.In the MasterPage I have an image.This displays well on the development environment and on the default page that inherits it.But now I have set the

I have an ASP.NET application that uses a MasterPage. In the MasterPage I have an image. This displays well on the development environment and on the default page that inherits it. But now I have set the website to prompt for a login using Form Authentication. The Login page 开发者_开发问答also inherits MasterPage but it can't seem to find the image. Both aspx files (default and login) are in the same directory as the MasterPage. There is only one image placed in the Images folder. Has anyone seen this before? Any ideas on how to fix this?

Thanks in advance, Rob


I have used the following to allow all users (even unauthenticated users) to access files in the images folder.

<location path="images">
  <system.web>
    <authorization>
      <allow users="*"/>
    </authorization>
  </system.web>
</location>
0

精彩评论

暂无评论...
验证码 换一张
取 消