<authentication mode="Forms">

在WEB.config里设置<authorization><deny users="?" /></authorization> 

<asp:Image ID="img1" runat="server" ImageUrl="GenerateCheckCode.aspx" />无法显示图片,


改成<authorization> <allow users="*"/> </authorization> 就看的到,

 

可以在 Web.config 中加入:

   <location path="GenerateCheckCode.aspx">
     <system.web>
     <authorization>
     <allow users="*"/>
     </authorization>
     </system.web>
   </location>

设定GenerateCheckCode.aspx的存取权限

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-06-20
  • 2021-11-29
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-11-29
  • 2021-04-09
  • 2021-11-29
  • 2021-12-25
  • 2022-12-23
  • 2021-11-29
  • 2021-07-23
相关资源
相似解决方案