View Full Version : Can anybody explain .asp and .htm to me please in Dreamweaver MX


BoppinBruce
15-06-2005, 08:20
The question is as above. What is .asp file and what is .htm file. How do they differ and how to I convert one to the other. I am working in Dreamweaver MX and appear, for some reason I have yet to fathom out, to have a mixture on the site.

Any help appreciated.

Joelc
15-06-2005, 08:25
.asp is active script, Microsofts own dynamic web scripting language (like PHP and JSP), .htm is a plain old html document.

Joel

BoppinBruce
15-06-2005, 08:28
how do I convert one to the other?

cgksheff
15-06-2005, 08:37
Google comes up with stuff like this:

http://www.sharewaresoft.com/HTML-to-AnyCode-Converter-download-660.htm

BoppinBruce
15-06-2005, 08:39
Thank you for info.

Joelc
15-06-2005, 09:16
Erm, you can't really convert ASP to html, Active Server Pages are just that, active, and so contain a lot of other bits, that generate the correct HTML for what its beed asked to do. You can extract the HTML, but it would be pretty useless over a lot of pages, due to it creating different html for different pages/users/operations etc. .htm and .html are the same files, .htm was origanlly used by Netscape stuff, but now its universal.

Joel

rich951
16-06-2005, 19:34
Originally posted by cgksheff
Google comes up with stuff like this:

http://www.sharewaresoft.com/HTML-to-AnyCode-Converter-download-660.htm

I can convert html to asp easier than that, just rename it to .asp! :)

If you haven't done it on purpose, you might just have plain html saved as asp. If there's no <% and %> codes in there (which surround bits of asp code so the server knows what it is), chances are it's just plain html and you can rename the file. Or you could just rename them all anyway and see if it still works! Another way is just to open them directly in the web browser (so it reads file:// in the address bar), this will make sure any asp isn't interpreted. If it appears to work, it ain't asp!