British Inside

An Englishman living in small town America

James Shaw

News

  • Copyright James Shaw 2004-2007

    Creative Commons License

    View James Shaw's profile on LinkedIn

View your compilation source

Quick tip! You've all probably seen your ASPX page throw an untrapped exception at some point, but it's been years since I ever really read the page.

Cody ShawSometimes, you'll be lucky enough to see a couple of links on there too, and it really is fascinating to follow those and see exactly how ASP.NET makes up your page. It's possible you didn't know that any piece of HTML you type on your.aspx gets turned into a .cs file with a LiteralControl containing that text. Which then gets compiled.

Yesterday I needed to see this "real" source code so that I could find out why something I coded hadn't worked. It can be quite tricky making those links appear!

Here's the answer: add this into your .aspx:

<%= 1/0 %>

Thanks to Scott for reminding me..

Posted: Sunday, November 07, 2004 10:57 AM by James
Filed under: ,

Comments

No Comments

New Comments to this post are disabled