Mar 4, 2010

Take your ASP.Net 2.0 App Offline quickly!!!

I stumbled upon this little tidbit & decided it was reposting here. If you create a file in an ASP.Net 2.0 application named app_offline.htm it will bring down the appdomain & just return the contents of that HTML document!

Make sure your HTML page is at least 512bytes in size, or IE's "friendly errors" may eat it. :)

The MAJOR benefit I see here is that you can quickly rename a standby page to app_offline.htm, make a few changes (replace locked files, etc) & then rename it back to app_online.htm & you're back in business.

Jan 11, 2010

ASP Tags Not Recognized w/Nested Masterpages

Okay, I had an odd thing occur today while editing one of my projects. All of the tags had the red squiggly line under them, claiming:

“unrecognized tag prefix or device filter ‘asp’”

After a little searching I found a Google group post stating that:
”…building makes no difference. what does make a difference is leaving the nested master page file open in the IDE editor window…”

So, just keep your "nested" master page open & all will be well.