Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Can I convert .aspx to .htm?

Can I convert .aspx to .htm?

Hi all
I know there are some very bright guys out there...
I have inherited a website that is totally suffixed with .aspx, something I know nothing about, and which I am informed has been discontinued.
From a brief and not thorough test I appear to be able to rename them to .htm and then edit in Front Page.
Now, I have a folder of 67 documents, all .aspx, and filled with hyperlinks to .aspx addresses.
Is there any way I can set up an automated macro, or something, to trawl through the whole folder and replace aspx with htm in all filenames and their internal references?

That's my problem, is there a solution please?


RE: Can I convert .aspx to .htm?

ASPX pages will most likely include programming that the server must process prior to sending it to the browser as HTML. So renaming the ASPX files to HTML will disable the function of the web pages. Without fully understanding the contents of the ASPX files, I do not recommend proceeding as you intend.

If you're okay with breaking all those ASPX pages, you can rename references of "ASPX" to "HTML" within the files with a tool like this.

You can use a renaming utility to replace the extensions on the filenames.

FrontPage has been discontinued by Microsoft. ASPX has not been discontinued. I sense you're setting yourself up for a big mess. bigsmile

RE: Can I convert .aspx to .htm?

I agree with spamjim.

They have aspx for a reason. Somewhere inside the code is aspx code that needs to be run for the page to work correctly.

Simply removing it all is very likely going to break the web site functionality.

I would understand exactly why they are in aspx format before attempting to change them. What exactly is the ASPX doing.

Beyond that, as mentioned ASP is alive and well.

Phil AKA Vacunita
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

RE: Can I convert .aspx to .htm?

Thanks to both.

I had a feeling that there should be more to it than I knew, and you have confirmed it.
Holds hands up and backs away slowly...

RE: Can I convert .aspx to .htm?

A bit more on FrontPage...

FrontPage's last update was a decade ago and the last full release was in 2003. Microsoft replaced FrontPage with Expression Web, which was also also discontinued a couple years ago.

Expression Web is now free and would make a good replacement for an aging FrontPage.

RE: Can I convert .aspx to .htm?

You can save the web page generated from ASPX script as a HTM page using the "Save page as..." function in any of the web browsers currently available. That will however save a static web page in the state it was, when it was opened in the web browser.
But I think is not a good idea, if I understand you right.
HTML files are static - the only processing allowed is on the client machine, via javascript.

ASPX files are dynamic, there is processing on the server each time the page is loaded or interacted with by the user, and this generates HTML which is passed to the client browser.

If you convert your ASPX to HTML you will lose all the dynamic elements of the page. Try it: Load your ASPX page in the browser and right click. Select "View Page Source (or whatever your browser calls it) and save that to you local HDD. You can load it, and it will look like your page, but nothing will actually work.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close