Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Broken images when using web.config

Broken images when using web.config

Scheduled Pinned Locked Moved ASP.NET
securityhelpquestionworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krose
    wrote on last edited by
    #1

    Hi, I'm new to the forum so I hope the code comes out okay below. Anyway, I'm working on a simple web page that displays a login form with an image. I can't see the image when I use the authorization section in my web.config file. I get a broken image link in the browser instead. If I don't use the authorization section, the web page works fine and I can see the image in the browser. However, I need the authorization to make sure users are logged in before they view additional pages. Can anyone help me with this? Here's the web.config file that I use: Here's the login page with the image tag: <%@ Page Language="VB" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.SqlClient" %> <%@ import Namespace="System.Configuration.ConfigurationSettings" %> Sub Page_Load() If Not IsPostBack Then End If End Sub Sub Button_Click(s As Object, e as EventArgs) End Sub

    UserID:

    A 1 Reply Last reply
    0
    • K krose

      Hi, I'm new to the forum so I hope the code comes out okay below. Anyway, I'm working on a simple web page that displays a login form with an image. I can't see the image when I use the authorization section in my web.config file. I get a broken image link in the browser instead. If I don't use the authorization section, the web page works fine and I can see the image in the browser. However, I need the authorization to make sure users are logged in before they view additional pages. Can anyone help me with this? Here's the web.config file that I use: Here's the login page with the image tag: <%@ Page Language="VB" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.SqlClient" %> <%@ import Namespace="System.Configuration.ConfigurationSettings" %> Sub Page_Load() If Not IsPostBack Then End If End Sub Sub Button_Click(s As Object, e as EventArgs) End Sub

      UserID:

      A Offline
      A Offline
      Anzy
      wrote on last edited by
      #2

      Did you include images/logo.gif in the project? As far as I know if it is, authorisation should not affect this at all.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups