• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 675
  • Last Modified:

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 ?
0
cubixSoftware
Asked:
cubixSoftware
  • 5
  • 3
  • 2
  • +2
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now