Click here to Skip to main content
15,892,298 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
QuestionRe: Informative Comments Pin
CPallini1-Feb-08 1:18
mveCPallini1-Feb-08 1:18 
GeneralRe: Informative Comments Pin
ClementsDan6-Feb-08 12:15
ClementsDan6-Feb-08 12:15 
GeneralRe: Informative Comments Pin
CARPETBURNER1-Feb-08 2:24
CARPETBURNER1-Feb-08 2:24 
GeneralRe: Informative Comments PinPopular
CPallini1-Feb-08 2:30
mveCPallini1-Feb-08 2:30 
GeneralTemplatized file Pin
jhwurmbach4-Feb-08 2:34
jhwurmbach4-Feb-08 2:34 
GeneralRe: Templatized file Pin
Jörgen Sigvardsson5-Feb-08 2:59
Jörgen Sigvardsson5-Feb-08 2:59 
GeneralRe: Templatized file Pin
Draugnar7-Feb-08 7:18
Draugnar7-Feb-08 7:18 
GeneralASP.NET - Trace.axd includes Application variables Pin
Ashley van Gerven31-Jan-08 14:10
Ashley van Gerven31-Jan-08 14:10 
Be very aware of this (or maybe it's common knowledge, and somehow I missed this vital info all these years).

If you accidentelly leave tracing enabled on a production site, be aware that anyone can see the details for the past xx requests. Now normally this info is fairly mundane - control hierarchy and server variables.

However, if you store connection strings in the HttpContext object, they will get output in the trace!! Could be very risky.

Of course normally you would use the connectionstrings helper which is available with ASP.NET 2.0 onwards, however if you have an older app, you may be doing this (e.g. when you Server.MapPath() to your local access database or something, and later upgrade to SQL server but keep the connection string in httpcontext object Unsure | :~ Unsure | :~ )

"For fifty bucks I'd put my face in their soup and blow." - George Costanza

CP article: SmartPager - a Flickr-style pager control with go-to-page popup layer.

GeneralRe: ASP.NET - Trace.axd includes Application variables Pin
Paddy Boyd1-Feb-08 4:22
Paddy Boyd1-Feb-08 4:22 
GeneralRe: ASP.NET - Trace.axd includes Application variables Pin
Ashley van Gerven1-Feb-08 5:12
Ashley van Gerven1-Feb-08 5:12 
QuestionHelp! NHibernate data saving problem. Pin
Harry Sun29-Jan-08 23:02
Harry Sun29-Jan-08 23:02 
GeneralRe: Help! NHibernate data saving problem. Pin
StM0n30-Jan-08 1:22
StM0n30-Jan-08 1:22 
GeneralRe: Help! NHibernate data saving problem. Pin
Pete O'Hanlon30-Jan-08 2:24
mvePete O'Hanlon30-Jan-08 2:24 
GeneralRe: Help! NHibernate data saving problem. Pin
Justin Perez30-Jan-08 2:31
Justin Perez30-Jan-08 2:31 
GeneralRe: Help! NHibernate data saving problem. PinPopular
Justin Perez30-Jan-08 2:30
Justin Perez30-Jan-08 2:30 
GeneralRe: Help! NHibernate data saving problem. Pin
Pete O'Hanlon30-Jan-08 2:41
mvePete O'Hanlon30-Jan-08 2:41 
Generalwho's who Pin
Luc Pattyn31-Jan-08 1:38
sitebuilderLuc Pattyn31-Jan-08 1:38 
GeneralRe: who's who Pin
Pete O'Hanlon31-Jan-08 3:01
mvePete O'Hanlon31-Jan-08 3:01 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun30-Jan-08 16:55
Harry Sun30-Jan-08 16:55 
GeneralRe: Help! NHibernate data saving problem. Pin
leppie30-Jan-08 21:47
leppie30-Jan-08 21:47 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun31-Jan-08 2:05
Harry Sun31-Jan-08 2:05 
GeneralRe: Help! NHibernate data saving problem. Pin
Richard.Parsons31-Jan-08 5:20
Richard.Parsons31-Jan-08 5:20 
GeneralRe: Help! NHibernate data saving problem. Pin
DavidNohejl31-Jan-08 5:48
DavidNohejl31-Jan-08 5:48 
GeneralRe: Help! NHibernate data saving problem. Pin
Harry Sun31-Jan-08 14:17
Harry Sun31-Jan-08 14:17 
GeneralWebservice!!!! PinPopular
jchigg200025-Jan-08 10:03
jchigg200025-Jan-08 10:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.