|
|
|
Browse Blog Posts by Tags
-
Chris Sells used to poke fun at me when we worked together in my former life . He used to call my security class, "Essential Access Denied". His point was a good one: when they aren't applied carefully, security countermeasures often just get in the way of getting work done. I don't...
-
I've been rather dark over the last couple of months as I helped to finish up Pluralsight's online training offering, Pluralsight On-Demand . I'm psyched that we finally shipped! Be sure to check it out soon (you can preview bits of each course right now for free), as we're offering a...
-
Executive summary: ValidationSummary controls look at the ErrorMessage field to figure out what to display, so always use ErrorMessage in a verbose enough way that it will be helpful from a ValidationSummary control. If you need a shorter message to display inline (i.e., where the validation control...
-
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 convert that into an empty string. So it's...
-
( 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 [Serializable], because it's very natural...
-
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 this displays just as you'd expect (e.g., $200...
-
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 the Health Monitoring system in ASP.NET. Enjoy...
-
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 my first solution was to implement a custom WebEvent...
-
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 says, "I used reflection to invoke some...
-
I've been building some internal pages for our sales team here at Pluralsight , and many of those pages make use of the ASP.NET GridView control to display rectangular data. It's generally a really easy to use control, but I've always struggled with getting column widths to look right. My...
-
I try to use declarative data binding (let's call it DDB for short) wherever I can in my ASP.NET apps, but there's one pain point I've run into in the past. It has to do with lists. Let's say you want to populate a list box or drop down list of choices by calling a static method - you can wire up an...
-
Microsoft has rolled out the beta of SP1 for .NET Framework version 3.5 and Visual Studio 2008. Now don't get confused, this is not just a simple set of bug fixes, this thing is big! Entity Framework and LINQ to entities ADO.NET Data Services (formerly project "Astoria") Dynamic data web sites (highly...
-
Thanks to all who attended this DevWeek talk today. Here's a link to the demos I did, along with the tamper-detection code I showed you. Enjoy! Updated (20 Mar 2008) with new link.
-
Hot off the presses, you can get it now from MSDN subscriber downloads or the trial version . See Soma's blog for more details on the new features, etc. Surprisingly, being a WF and BizTalk guy, I'm least excited about the WF/WCF integration. I'll talk more about what I dislike later, but this is a happy...
-
A reader asked me this question today (specifically in regards to SQL Server and IIS). He said that he found some advice in the patterns & practices guidelines ( How To: Create a Service Account for an ASP.NET 2.0 Application ) that seemed to indicate that it would be OK to use the Network Service...
|
|
|
|
|
|