ASPX convert to HTML

I am currently learning ASP.Net and decided to create a simple website that contains a few .ASPX files. There is no server code to run in any of the files, they are simply text and pictures, with links to the other .ASPX files within my .Net solution.

When I have come to put this out to the web, I have discovered that the web server is Apache and none of these ASPX files will load up.

In order not to lose the work I have done, is there a quick and easy way to take the ASPX pages and simply convert them to HTML pages so I can put those out to the web server instead ?
LVL 6
cubixSoftwareAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mirmansoorCommented:
Since you dont have any server code.. try to just change the file extension of your aspx files from .aspx to .html
0
GavinMannionCommented:
Or if you are using .net v1 I am quite sure there is a CLR built for apache. Just install that.

Or change to IIS :)
0
cubixSoftwareAuthor Commented:
mirmansoor - tried renaming previously and it doesn't work. I loose the text style and all pictures, links etc.

Gavin - would like to change to IIS but not in control of that one I'm afraid. With regards the CLR, do you have any more info / links?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

GavinMannionCommented:
Are you using the <asp:Image... type components on the page?

Easiest hack around would be to run the pages, right click and view source then copy that html into new pages. Not pretty but it will work.

Else try find a patch for apache that runs aspx pages.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mirmansoorCommented:
http://weblogs.asp.net/israelio/archive/2005/09/11/424852.aspx
this article will certainly help you to run aspx on apache.. take a look..
0
existenz2Commented:
You need Mod_AspDotNet to run it with Apache. Have a look at:
http://weblogs.asp.net/israelio/archive/2005/09/11/424852.aspx
0
mirmansoorCommented:
well... that link is the exact same link that i'd sent !!!
existenz2... wonder where u got that link from??? lol...
0
whityumCommented:
if it's only a few pages, fire it up and hit view source, copy, paste into html file.
0
cubixSoftwareAuthor Commented:
Gavin - Quick test and it looks like your work around might just do it. Will try it against all the files later today.
0
existenz2Commented:
Sorry mirmansoor, missed your post completely. Sorry my bad!  I scanned the article for the url, but I guess I didnt saw yours...
0
mirmansoorCommented:
heyy... dont worry abt it.. ;-)
0
GavinMannionCommented:
whityum that would be exactly what I pasted ;).... Seems to be a few duplicates on this page...
0
mirmansoorCommented:
tell me abt it.. ;-) :-) ...
0
whityumCommented:
haha, sorry, i saw this when I got into work in the morning, started typing, got called away to a meeting and think I submitted it later
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.