View Full Version : Image


accessman2
03-26-2006, 10:31 PM
Hi,

I want to make sure between HTML and ASP. Most of the HTML codes can be used in the ASP, right. The only different is the syntax, and ASP can support database, and ASP is running in the server.


In HTML,
<img src="boat.gif" alt="Big Boat">

In ASP,
Response.write("<img src='boat.gif' alt='Big Boat'>")

For the above HTML and ASP examples
Is it correct?

Please let me know, thanks.

Sergeant
03-27-2006, 02:16 AM
Looks right to me. Did you try it? That's what I'd do.
I have a folder at C:\Inetpub\wwwroot\TESTASP\ that has a bazillion tiny ASP pages (aptly named) where I tried things I didn't fully know about until I eventually got them figured out.

Kodo
03-27-2006, 05:29 AM
not entirely correct. The proper way is to use quotes, not apostrophe's

Response.write("<img src=""boat.gif"" alt=""Big Boat"">")