M
Miro
I cant seem to figure out why this doesnt work.
I have a folder structure like this:
<root>
default.aspx
test1.aspx (with an image control)
Folder_Products
test2.aspx (with an image control)
Folder_ProductImages
<image files...>
in each program i want to call a simple global function as below but when I
click "play" within visual studios the image does not display if i use the
server.mapPath. Notice how that line is commented.
But by doing this, Only test1.aspx can show the image and test2.aspx cannot.
Why doesnt server.mapPath properly work?
If I shoot that value to a textbox, it actually does show a valid url path.
Function ImagePathUrl_DesignBib(ByVal ImageName As String)
Dim DesignBibImageLocation As String
'Dim DesignBibImageLocation As String =
Server.MapPath("Products/ProductImages/" & ImageName.Trim)
DesignBibImageLocation = "Products/ProductImages/" & ImageName.Trim
Return DesignBibImageLocation
End Function
The only thing I can think of is that when I run it through vb...its somehow
blocked because of this port line:
http://localhost:49462/ then the aspx pages
Thanks,
Miro
I have a folder structure like this:
<root>
default.aspx
test1.aspx (with an image control)
Folder_Products
test2.aspx (with an image control)
Folder_ProductImages
<image files...>
in each program i want to call a simple global function as below but when I
click "play" within visual studios the image does not display if i use the
server.mapPath. Notice how that line is commented.
But by doing this, Only test1.aspx can show the image and test2.aspx cannot.
Why doesnt server.mapPath properly work?
If I shoot that value to a textbox, it actually does show a valid url path.
Function ImagePathUrl_DesignBib(ByVal ImageName As String)
Dim DesignBibImageLocation As String
'Dim DesignBibImageLocation As String =
Server.MapPath("Products/ProductImages/" & ImageName.Trim)
DesignBibImageLocation = "Products/ProductImages/" & ImageName.Trim
Return DesignBibImageLocation
End Function
The only thing I can think of is that when I run it through vb...its somehow
blocked because of this port line:
http://localhost:49462/ then the aspx pages
Thanks,
Miro