# Why do they use ASPX?

**URL:** <https://boards.straightdope.com/t/why-do-they-use-aspx/600363>\
**Category:** Factual Questions\
**Created:** [October 21, 2011, 3:23pm UTC](https://boards.straightdope.com/t/why-do-they-use-aspx/600363 "2011-10-21T15:23:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nametag](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/nametag/32/406_2.png) [@Nametag](https://boards.straightdope.com/u/Nametag)\
**Post date:** [October 21, 2011, 3:23pm UTC](https://boards.straightdope.com/t/why-do-they-use-aspx/600363/1 "2011-10-21T15:23:46Z")

</div>

Often I will click a link to download a PDF. Often, the link is actually an aspx… script?.. that commands the browser to retrieve the PDF. Often, this doesn’t work, and sometimes even crashes my browser.

Why? Why not just post a link to the PDF? Why put this crap in the way? What’s the benefit in writing additional code for a protocol that’s apparently not well implemented?

Why?

Whywhywhywhywhywhywhy?

---

<div class="post-metadata">

**Author:** ![Nanoda](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@Nanoda](https://boards.straightdope.com/u/Nanoda)\
**Post date:** [October 21, 2011, 3:32pm UTC](https://boards.straightdope.com/t/why-do-they-use-aspx/600363/2 "2011-10-21T15:32:54Z")

</div>

Lots of reasons. The pdf might be in a database, or be stored somewhere similarly inaccessible. It might need to be dynamically generated.

Incidentally, I don’t see how the aspx page could at all be responsible for your browser crashing; I’d be much more inclined to blame an iffy pdf plugin.

---

<div class="post-metadata">

**Author:** ![sco3tt](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sco3tt](https://boards.straightdope.com/u/sco3tt)\
**Post date:** [October 21, 2011, 4:12pm UTC](https://boards.straightdope.com/t/why-do-they-use-aspx/600363/3 "2011-10-21T16:12:43Z")

</div>

The extension is pretty much immaterial to your browser when deciding whether to consider the content to be a pdf document. This is dictated by a header (unseen by you, but sent by the server to your browser) which describes the content type of the data being sent. As **Nanoda** mentioned, this allows the content itself to be served up dynamically (pulled from a database, rendered on the fly, etc.). It need not be a physical file sitting in a directory on the server.

If you’re curious about the mechanics of it, [here’s a page](http://www.dotnetscraps.com/dotnetscraps/post/4-ways-to-send-a-PDF-file-to-the-IE-Client-in-ASPNET-20.aspx) that gives you a look behind the scenes at four ways PDF content can be served by an asp (or aspx) page.

I would also agree with **Nanoda** that the problem likely resides with your plugin or its configuration. Have you tried loading the same file with Chrome? It has a native pdf renderer that takes some of the headache out of this.
