D
David C
I have an ASP.Net 2.0 page that displays images in a DataList from a virtual
directory on a different server in the domain. All works fine at a regular
workstation, but when I log in via our VPN the images do not show, only a
red X shows where the image should be. Any ideas why this happens and where
I need to look to get them to display?
Below is how I am populating the DataList.
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Not Page.IsPostBack Then
Dim strpath As String = "/MyWeb/Photos/DAUCHY, JOE/RO25369"
Dim dirInfo As New DirectoryInfo(Server.MapPath(strpath))
PhotoList.DataSource = dirInfo.GetFiles("*.jpg")
PhotoList.DataBind()
End If
End Sub
David
directory on a different server in the domain. All works fine at a regular
workstation, but when I log in via our VPN the images do not show, only a
red X shows where the image should be. Any ideas why this happens and where
I need to look to get them to display?
Below is how I am populating the DataList.
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Not Page.IsPostBack Then
Dim strpath As String = "/MyWeb/Photos/DAUCHY, JOE/RO25369"
Dim dirInfo As New DirectoryInfo(Server.MapPath(strpath))
PhotoList.DataSource = dirInfo.GetFiles("*.jpg")
PhotoList.DataBind()
End If
End Sub
David