.NET Misc.
I just answered a question online where somebody was wondering where CulturalAndRegionalInfoBuilder was. They had included a reference to System.Globalization, but still no luck. In order to access CulturalAndRegionalInfoBuilder and a lot of the new objects
Read More...
I've answered this 2x in the past week, so I think it's a worthy point to bring up. When implementing generic interface IEnumerable<>, you'll need to implement both IEnumerable<>.GetEnumerator() and IEnumerable.GetEnumerator() as IEnumerable<>
Read More...
Ever wonder what all the .NET Languages are? See them all as well as links to learn more about them. .NET Languages - Resources Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Read More...
If you are unable to view images and/or a style sheet is not formatting a web form and you are using forms authentication, you'll need to make the below changes to Web.config (assuming that your style sheet is in a directory named style and images
Read More...
One of the great mysteries of .NET 2.0 is how to reference the class of a master page or user control from code-beside. This is where the MasterType and Reference directives come into play. Master Page (from content page) <% @ MasterType TypeName ="ClassName"
Read More...
I thought it would be cool to put together a countdown to the release of ASP.NET 2.0 Unleashed , by Stephen Walther, on June 9, 2006. So, I created the below dynamic image. Cool, huh? Now here's the code to the above countdown image. <% @ Page
Read More...
Some people may not know that .NET 2.0 provides APIs for accessing everything in a configuration file. The most common question I see relates to accessing the mail settings in the system.net node programmatically. C# using System.Configuration; using
If you are using the new Bind() method, but are trying to pass it to a function or perform any other type of manipulation on it, you will get the following error as Bind() only allows for 1 way data binding: Bind does not exist in the current context
Read More...
Good news. Tonight I got my MVP nomination from the MVP lead for my contributions to the ASP.NET Community. Yeah! A special thanks to all that made this possible. Share this post: email it! | bookmark it! | digg it! | reddit! | kick it! | live it!
Read More...
EnsureChildControls is something useful to keep in mind when creating properties that get/set properties on controls present in, for example, a web form or master page. If the control has not yet been created, you will get a runtime error. What EnsureChildControls
Read More...
There are many AJAX controls out there, but which one is right for you? Daniel Zieb put together a comprehensive comparison of 6 different AJAX controls and reported on their performance in a very excellent article. Welcome to my comparison of AJAX frameworks
Read More...
I'm working on a tough web site debugging issue, and somebody sent me the below link to Tess's blog. It is the best debug blog I've ever seen. If broken it is, fix it you should Share this post: email it! | bookmark it! | digg it! | reddit! | kick it!
Read More...
Accessing a resource file in .NET 2.0 is very easy without the need for a ResourceManager. Resources .
. So, if the resource file was named Resource.resx and you are trying to access a string property named Title,
Read More...
Occasionally, I've glanced at the TryParse method in IntelliSense, but never gave it a test run. TryParse is actually pretty cool. It will try to parse a string and see if it can convert it to a specified data type. This is perfect for query strings as
Read More...
Let's say for instance, you want to create a List of your own class, say Employee, where Employee represents an employee. First, we'll start by creating an employee class. [ Serializable ] public class Employee { private bool m_IsSalaried; private int
Read More...