Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object February 2010 Entries
WTF #2

Sometimes we find some code that... well.... I guess someone must be really REALLY high to write...


The WTF way



The right way:






Posted On Monday, February 22, 2010 4:26 AM

I think it's common knowledge that timeouts can be set on connection strings to ensure that a certain connection doesnt say open for more than SSS seconds. What is not so common knowledge is the fact that on a transaction every single command has its own timeout value and if exceded it can bring down the entire transaction. So when using transactions take in mind that you can set the connection timeout to 20 minutes, but if a single command that takes a few extra seconds can timeout. To prevent this ......

Posted On Wednesday, February 17, 2010 9:15 AM

How to use an Aspx as a proxy for a PDF file
Response.Clear();Response.C... = "application/pdf";Response.... "attachment;filename=\"File... SourceEnjoy :) ......

Posted On Friday, February 5, 2010 12:25 PM

Copyright © Sglima | Powered by: | Join free