1

How can I get any browser to just treat a .asp/.aspx file as if it was .html and render it? (Without installing ASP server). It always pops up with a download box or displays the source.

Preferably for IE8. On Vista.

Thanks.

3
  • 1
    Not sure what outcome you are looking for? You need the server to interpret the server side logic.
    – RobS
    Jun 13, 2009 at 2:36
  • You could rename it to .html potentially
    – RobS
    Jun 13, 2009 at 2:38
  • You're right. But I only care about the HTML. Ignoring the ASP logic is fine. This is what IE 7 did and I'm using it to preview work in editplus.
    – Harfuf
    Jun 13, 2009 at 2:39

5 Answers 5

1

What about Visual Web Developer 2008 Express? It's a no-cost way to develop and view ASP.NET pages.

1
  • The default configuration of the preview-server in my Web Developer 2008 Express won't execute "classic ASP" files when i choose "View in Browser". It shows the error page " This type of page is not served. The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect..." So can one somehow persuade it to execute classic .asp files?
    – Cheekysoft
    Feb 4, 2011 at 16:28
0

I know how to do this in Firefox (i.e., with the awesome force content-type firefox extension!), but I don't know how to do it in IE8.

0

You can just "render .asp" files in a browser like an HTML file. Browsers don't "speak" ASP.

ASP files contain scripts which are executed on a server so you have to have the server installed to get back the results you want.

0

I realise you wanted server-less, but in light of forcing a browser to render and ignore server side tags, as an alternative you could use Cassini web server - it's very lightweight and portable and you can still edit the asp/aspx files directly and it will render fine in a browser..

0

I'm with Robert Cartaino on this: you won't see what you expect to. But since these are your files, you could just temporarily re-name them to *.html and see what you get.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.