|
|
|
Browse Blog Posts by Tags
-
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...
-
It's surprising that XmlDocument isn't marked [Serializable], because it's very natural to serialize one into a stream. I wanted to put an object into ASP.NET ViewState the other day, and quickly ran into this roadblock, because part of the object included an XmlDocument, which is not serializable...
-
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...
-
If you or somebody you know is looking for a quick start learning .NET 3.0 (WCF, WF, WPF, and Information Card technology) I'll be teaching our Applied .NET 3.0 course in a suburb of Boston, MA on August 14. The class runs Tuesday through Friday. It's a few weeks away, so sign up today! I'm really excited...
-
An updated version of my ViewState decoder utility (2.2) is available here . This update includes a fix for the 'extract viewstate' feature which was apparently broken in the last release. Thanks to Israel Aece for pointing out the problem. Update: fixed link to point to new download location...
-
If you are like me and are addicted to using Fiddler to debug HTTP sessions, you may be a little frustrated by the fact that you can't do this using Visual Studio's built-in HTTP server. Well, Dominick supplies an answer that he found on a German blog: IE7 always bypasses proxies for "localhost" addresses...
|
|
|
|
|
|