Click here to Skip to main content
15,887,376 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.

 
GeneralRe: Access granted! Pin
Gary Huck13-Jun-11 8:47
Gary Huck13-Jun-11 8:47 
GeneralRe: Access granted! Pin
englebart13-Jun-11 9:20
professionalenglebart13-Jun-11 9:20 
GeneralRe: Access granted! Pin
Br.Bill13-Jun-11 10:13
Br.Bill13-Jun-11 10:13 
GeneralRe: Access granted! Pin
TorstenH.13-Jun-11 11:53
TorstenH.13-Jun-11 11:53 
GeneralRe: Access granted! Pin
Br.Bill13-Jun-11 12:13
Br.Bill13-Jun-11 12:13 
GeneralRe: Access granted! Pin
patbob13-Jun-11 14:08
patbob13-Jun-11 14:08 
GeneralRe: Access granted! Pin
Michael D. O'Connor14-Jun-11 3:11
Michael D. O'Connor14-Jun-11 3:11 
GeneralAfter All My Years PinPopular
AspDotNetDev7-Jun-11 13:44
protectorAspDotNetDev7-Jun-11 13:44 
I have only just found out what this would do:
ASP.NET
<!-- <my:control runat="server" /> -->

That line was causing one of our webpages to load extremely slow, and I wasn't sure why. It seems a control placed inside of an HTML comment in an ASP.NET page will actually be executed (the control was in development and was very slow). So the HTML that gets output based on the above code might be:
HTML
<!-- <p>Hello</p> -->

Using a server-side comment, on the other hand, does not cause this problem:
ASP.NET
<%-- <my:control runat="server" /> --%>

That will not render to any HTML (as expected). I suppose it makes sense, but still had me stumped for a bit.

GeneralRe: After All My Years Pin
BobJanova8-Jun-11 0:34
BobJanova8-Jun-11 0:34 
GeneralRe: After All My Years Pin
walterhevedeich8-Jun-11 13:55
professionalwalterhevedeich8-Jun-11 13:55 
GeneralRe: After All My Years Pin
Philippe Mori13-Jun-11 13:29
Philippe Mori13-Jun-11 13:29 
GeneralIt came out... PinPopular
Lutosław7-Jun-11 11:49
Lutosław7-Jun-11 11:49 
GeneralRe: It came out... Pin
gavindon7-Jun-11 11:58
gavindon7-Jun-11 11:58 
GeneralRe: It came out... Pin
Lutosław7-Jun-11 12:04
Lutosław7-Jun-11 12:04 
GeneralRe: It came out... Pin
StM0n7-Jun-11 20:32
StM0n7-Jun-11 20:32 
GeneralRe: It came out... Pin
Lutosław7-Jun-11 22:59
Lutosław7-Jun-11 22:59 
GeneralRe: It came out... Pin
StM0n7-Jun-11 23:04
StM0n7-Jun-11 23:04 
GeneralRe: It came out... Pin
Lutosław9-Jun-11 23:47
Lutosław9-Jun-11 23:47 
GeneralRe: It came out... Pin
StM0n10-Jun-11 0:05
StM0n10-Jun-11 0:05 
GeneralRe: It came out... Pin
kevinpelgrims8-Jun-11 2:27
kevinpelgrims8-Jun-11 2:27 
GeneralRe: It came out... Pin
Lutosław8-Jun-11 12:05
Lutosław8-Jun-11 12:05 
GeneralRe: It came out... Pin
venomation13-Jun-11 8:17
venomation13-Jun-11 8:17 
GeneralRe: It came out... Pin
Lutosław13-Jun-11 8:46
Lutosław13-Jun-11 8:46 
GeneralRe: It came out... Pin
fuximus13-Jun-11 15:51
fuximus13-Jun-11 15:51 
GeneralRe: It came out... Pin
Lutosław13-Jun-11 21:46
Lutosław13-Jun-11 21:46 

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.