|
|
|
Browse by Tags
-
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...
-
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...
-
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...
-
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 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...
-
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'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...
-
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...
-
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.
-
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...
-
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...
-
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...
-
If you attended any of my talks at DevWeek 2007 and are looking for the demos that I did, the code for all of them can be found here . Enjoy!
-
I just discovered the new Page.Items property in ASP.NET 2.0. Accidentally. You see, many of the properties from HttpContext are conveniently echoed in the Page class. For example, Page.Request == Page.Context.Request == HttpContext.Current.Request Page...
|
|
|
|
|
|