M
Miguel Dias Moura
Hello,
In an ASP.Net / VB web page I want to display an image which filename
depends of a parameter on the URL.
I have this:
<img
src="images/content/collection-"&"<%#Request.QueryString("type")%>"&".gif"/>
So if type=book I should have "img
src="images/content/collection-book.gif"
However I can't see the image.
I used the following code to check things out and the image showed up.
<img src="images/content/collection-book.gif"/>
This is my URL:
http://localhost/website/collection.aspx?type=book
I also tryied with the image control of ASP.Net but I got an error cause
I have a datalist in this page and it says I can't have more then one
form on a page.
This is driving me crazy. Can someone tell me what am I doing wrong?
Thanks,
Miguel
In an ASP.Net / VB web page I want to display an image which filename
depends of a parameter on the URL.
I have this:
<img
src="images/content/collection-"&"<%#Request.QueryString("type")%>"&".gif"/>
So if type=book I should have "img
src="images/content/collection-book.gif"
However I can't see the image.
I used the following code to check things out and the image showed up.
<img src="images/content/collection-book.gif"/>
This is my URL:
http://localhost/website/collection.aspx?type=book
I also tryied with the image control of ASP.Net but I got an error cause
I have a datalist in this page and it says I can't have more then one
form on a page.
This is driving me crazy. Can someone tell me what am I doing wrong?
Thanks,
Miguel