views:

340

answers:

5

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.

A: 

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.

Alex Martelli
+1  A: 

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

Chris Farmer
A: 

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.

Robert Cartaino
A: 

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

RobS
A: 

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.

Joel Coehoorn