Broken images when using web.config
-
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:
-
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: