Forum Moderators: open

Message Too Old, No Replies

Migrating from HTML to ASP

I don't have apache so .htaccess won't do

         

polyhedron 12

10:34 pm on Feb 24, 2004 (gmt 0)



I'm trying to migrate all of my web pages from .html to .asp. My web server is running iis. Any ideas on how to do this. Will I have to go and manually change every link from .html to .asp?

The reason that I am doing this is because I built the site with Dreamweaver and used library items all throughout the site for repeated items. Some had random banners that are changed with javascript, and some are just static. Dreamweaver messed up all of the library items now so that they will not update on random pages and I really need to update them. I figured that I will change to some type of processed page like .asp so that I will not run into this again. I don't want to let some faulty programming ruin my day again, I want complete control.

Xoc

1:48 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could change the mappings to allow the .asp processor work on .html files.

You can just go into the IIS mappings and map the .html file extension to go to the .ASP DLL. Then you can leave your files .html instead of .asp and everything should work fine.
To add the mappings, you want to go to the web site properties in IIS Manager. Then the Home Directory tab, then click the Configuration button. From there you want to make the mapping for .html match the entry for .asp.

mattglet

3:23 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Xoc,
What about the people that don't have that option?

-Matt

wackal

3:23 am on Feb 26, 2004 (gmt 0)

10+ Year Member



if your pages are all html, you can just change the extension to .asp and it will still give you the same page. You can then add asp code little by little.

Shuvi

7:28 pm on Mar 1, 2004 (gmt 0)

10+ Year Member



I thought you had to have this at the top of every asp page.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

-Shuvi

plumsauce

11:40 pm on Mar 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




not unless you are using any asp in the page.
if you feed straight html to asp.dll then
it does not require it.

plumsauce

11:44 pm on Mar 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




matt,

almost everyone has this option because the
mapping can be set at the directory level.

if the host will not allow at least this,
then it *might* be time to change hosts.

ymmv

++

mattglet

1:07 am on Mar 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



plumsauce-

I was aware of that, just striking the argument in case someone in the future comes back to need this post. Your response is exactly what I was hoping for. Thank you.

-Matt

Shadows Papa

3:44 pm on Mar 7, 2004 (gmt 0)

10+ Year Member



Gentelmen, and ladies too....
This quote make me wonder if it's part of a problem with my own site!
>>I thought you had to have this at the top of every asp page.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

-Shuvi <<

I have a site with a few dozen pages. It started out plain HTML. I migrated to ASP because I wanted to use "includes" for footers, menus, and so on - you know, the boilerplate code I didn't want to have to change in 50 pages, but change in 1 file and have it reflected in 50. I also have a guestbook, based on ASP and Access database. There is a forum and a mailing list signup as well.
I do not have any such string at the top of ANY of my pages. I simply renamed the files from myfile.html to myfile.asp and added the includes and the forum, guestbook, etc. Made no other changes. It was working for nearly a year, then the ISP upgraded to server2003 and now my site literally crashed once a week, always on Friday/Saturday, and only the ASP pages die, the plain pure mypagetoo.html pages still are displayed, anything with an ASP extension, even if it's just an HTML file with an include in it won't display.
The ISP blames me and my code, I say "it worked BEFORE your upgrade. He says my site is the only one with issues. I ask, then why did it work before the move to 2003?
I'll post a whole new message under another topic, but this one caught my eye. I'm so desperate! It's a site that is helping to keep my wife's small store alive and without it, we could lose much. We'd be in a big hole if not for the orders this site generates.

Shadows Papa