|
|
|
|
|
|
|
August 2008 - Security Briefs
-
I just spent about 15 minutes debugging a problem where a document was getting unexpected nulls where empty strings should have been. Indeed controls like the TextBox have code in them that allows you to set the Text property to null and the TextBox will...
-
( Updated 9 Oct 2008: replaced my custom MemoryStream.CopyUpToSeekPointer() extension method with MemoryStream.ToArray(), a built in method on MemoryStream that I overlooked and should have been using) It's surprising that XmlDocument isn't marked...
-
Two way data binding in ASP.NET is easy, just use the Bind expression and data will flow between your web controls and your data source flawlessly. Until that is, you try to use a format string: Bind("AmountCharged", "{0:C}") While...
-
We recently updated our website and some links have broken as a result. Here's the place you should go to get the latest version of Password Minder: http://mercury.pluralsight.com/tools.aspx Sorry for any inconvenience!
-
This is the third post in a series. The first post described the problem: ASP.NET wasn't reporting inner exception stack traces. The second post described my solution. This post shows the code I used to solve the problem: a custom email provider for...
-
Okay it's Saturday, so let me share something completely nontechnical and fun. What you need to make these cocktails: Six pack of Corona Extra Bottle of Bacardi Limon Lime Coctail stirrer (a chopstick works fine) Pop a slice of lime into a Corona...
-
We recently switched our blog engine out, and I'm still getting the hang of the new system. Looks like due to a misconfiguration, several comments have been waiting for moderation for days or weeks. If yours was one of them, please accept my apology...
-
In my last post , I commented on how ASP.NET health monitoring doesn't output stack traces for inner exceptions, which can be problematic due to its heavy reliance on reflection. I spent the morning doing some further spelunking with reflector , and...
-
This can be a problem, especially when an ObjectDataSource starts throwing exceptions. The stack trace looks the same because of the way the methods are invoked (via reflection) - you end up with a stack trace for a TargetInvocationException, which basically...
-
I use email as a notification mechanism a lot, and often in class I'll demo sending email via a technique that I use frequently when developing code. It allows you to simulate sending an email message. The trick to doing this is not to hardcode things...
|
|
|
|
|
|