Chris, perhaps you should urlencode the src attribute?
"Chris" <Chris (AT) discussions (DOT) microsoft.com> wrote
I have written an ASP.NET application.
I have a table in sql server 2000 that contains the filenames(images) for
files in a virtual directory. It appears that if the filename has spaces
it I can't show the image on the wepage.
the code in my aspx.vb page is this:
Response.Write("<img src=/maps/" & dsMaps.Tables(0).Rows(count).Item(0) &
width=642 height=496 border=1 onCLICK=hide('")
it works fine if the filename for example is : 11111_SHEARD&MIDLONG.gif
if however in the database the field is 11111_SHEARD & MIDLONG.gif and the
file in the directory is 11111_SHEARD & MIDLONG.gif , it will not show the
the view source of the rendered html page shows this for the page:
'<img src=/maps/11111_SHEARD & MIDLONG.gif width=642 height=496 border=1
how do i get it to show the image?