How to Convert ASPX to PDF and Open Any ASPX File

Are you wondering how to Convert ASPX to PDF and open any ASPX file? Do not worry. Its very simple. I will explain the steps involved to convert an ASPX file to a PDF file and then open it.

Before going to details on how to convert ASPX files to a PDF files or how to open ASPX files, let us discuss what is an ASPX file.

aspx to pdf

What are ASPX files?

ASPX files are Active Server Page Extended (ASPX) files, which contains VBScript or C# code. These files are auto-generated on the web servers, especially on Microsoft IIS servers. In general, these type of files are created using Microsoft Visual Web Developer software.

ASPX files designed for Microsoft’s ASP.NET framework. If you see any website URL with ASPX towards the end (after the last dot in the URL), it means that the webpage is using ASP.NET framework. Hence, aspx files are also known as .NET web forms.

In almost all cases, aspx files are sent accidentally by browsers. Technically speaking, the web server did not name these file properly.

How to get the Correct Files instead of ASPX files?

If you get any aspx files accidentally, chances are that you can get a proper file, if you try to access the same web page using a different browser, than the one used initially.

If you have initially used Google Chrome which resulted in generating an aspx file, now try to use Firefox or Internet explorer or some other browser. In most cases, you will get the filename with proper extension, as you expected the generated file to be of. Now, you can open it with the right application. Your problem is solved now.

How to Convert an ASPX File to PDF File?

1. Rename the aspx file to pdf file

If you have received an aspx file and is not in a position to not get the correct file, you can convert the aspx file to another format like pdf, by simply renaming the file with proper file extension.

Some likely scenarios where you can not get the new correct files are : You do not have internet connection currently. Another scenario is that you do not have access to the original web server which generated the aspx file, because it requires username and password of somebody’s else. eg. A chartered accountant trying to open a bank statement sent by a client.

2. Convert aspx file to pdf, by first converting to oxps file and then to pdf

If renaming the file does not work, try this option. It is a two step process. i.e. Before you can convert an aspx file to a pdf file, you need to first convert it to an oxps file.

To convert an aspx file to an oxps file

  • Open your ASPX file using any standard application on your windows computer. You may be able to use your web browser like Google Chrome, Firefox, etc, to open this file.
  • Go to File -> Print. Alternatively, press Ctrl+P
  • Choose “Microsoft XPS Document Writer” as your printer.
  • Click “OK” or “Print”.
  • Select a destination folder for your OXPS file and click “Save”.

This OXPS file can be easily converted to PDF at many websites. It is free at web sites like online2pdf.com.

How to Open any ASPX file

1. Rename the File and then Open

To open any ASPX file, please follow the steps below:

  • Simply rename the file extension from .aspx to (whatever file extension you expected it to be) .pdf or .xlsx, and then try to open with Adobe Reader or Microsoft Excel. If you think it is graphics file, rename it as jpg and then open it with any graphics applications or Windows Paint application.
  • If file extensions are not visible in File Explorer (in newer versions of Windows), go to File Explorer, go to the View and check the box “file name extensions”
  • If file extensions are not visible in File Explorer (in older versions of Windows), go to the View > Options > Uncheck (Remove the Tick mark) near Hide extensions for known file types > Ok.

2. Using an Application to Open the ASPX File

1. In New Versions of Windows

  1. Right click on the Start menu, and select “File Explorer”.
  2. Click the View option on the upper right corner of the window.
  3. Select Small icons, and click Default Programs.
  4. Right click on the file name.
  5. Click Open with
  6. Click Choose another app
  7. Select Adobe Reader, (or any other application which you expect this file type to be of) and click OK to change the program.

2. In Old Versions of Windows

  • Right click on the Start menu, and click the View by option on the upper right corner of the window.
  • Select Small icons
  • Click Default Programs
  • Click Associate a file type or protocol with a program
  • Look for .aspx protocol
  • Click Change program
  • Select More apps.
  • Select Adobe Reader (or any other application which you expect this file type to be of)
  • Click OK to change the program

Conclusion : Active Server Page Extended files or ASPX files are auto generated on the web servers. These files are wrongly named files; with wrong file extensions. ASPX files can be converted to pdf files and can be opened in many cases, by simply renaming the file name to pdf (or whatever file type you expected it to be of). If renaming does not work or you want the aspx file to be converted to pdf for some required purposes, try to first convert it as an oxps file and then convert it to pdf, at websites offering this free service.

If the above methods does not work and you have access to the web page which generated the aspx files, you can you a different browser than the one used initially, to generate the correct file. In many cases, you can open the aspx file manually, by selecting the correct windows application.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.