-
So this is a pretty straightforward concern, but I wanted to add validation notation to a FieldTemplate's Label, and not necessarily its control. In ASP.NET's dynamic data, this isn't straightforward. What I found is that using Entity Templates is better than editing individual Field Templates. Go into your dynamic data directory and open
-
As part of a kiosk application written in WPF, the client wanted 'Swipe'-like functionality similar to many touch-enabled smartphones. It's actually not that hard in .NET 4 and WPF. First, add a property to your page/control that keeps track of the Touch that the user has initiated to start the swipe event: protected TouchPoint TouchStart;
-
By default, the Entity Data Model version of Dynamic Data allows you to use a Many-To-Many fieldtemplate user control, which on display shows you a nice list of links for each related entity. However, in some instances you might not want to show links. Perhaps you want to show plain text, or maybe a custom control? Diving into the code for the Many
-
While working on a project with a LinqToSQL Classes object (.dbml), sometimes your dbml file will get hosed when you remove/add/modify some part of the data model. At first, my error was "The custom tool 'MSLinqToSQLGenerator' failed." , indicating that the LinqToSQL custom tool was failing. Oddly, what would happen is the code would
-
So I admit it, I have gone against Microsoft's best practices and used Microsoft Excel on a server and had my web-based code call the Interop COM Library in order to generate Excel files. Sorry, but it works, and the code is managed and free. I won't lie, I love using Microsoft.Office.Interop.Excel. So suck it. But in migrating one of our servers
-
So I took a new job which has me writing C# code again, which is great! A lot of new developments have happened in ASP.NET land since I've been gone, such as MVC framework, ASP.NET 3.5, etc. However, I've been working to keep up with them and I'm excited about what the future holds. The last few days I've been working on a Flex + Sharepoint
-
Word to the wise, unless you want to spend hours tracking down idiotic Stack Overflows, check your Sitemap files in ASP.NET. Each sitemap node can contain a 'Provider' attribute. This is designed so that you can set up several sitemaps, and have a master sitemap file pull submenuitems from seperate sitemap files (or databases, depending on your
-
So I am back into making .NET websites... and I love the web.sitemap feature of .NET 2.0+ However, I like my web folder structure to be semantic. This means that instead of clunky files with extensions, I like to have a directory for every portion of the site. Example: http://www.website.com/products/, http://www.website.com/aboutus/ And then every
-
So I've been re-tooling my demo-game in XNA to take advantage of XNA 2.0 enhancements. So one thing I noticed is that my very simple code that I lifted from NetRumble project wasn't working in my project. It was a simple sign-in invocation: if (! Guide .IsVisible) { Guide .ShowSignIn(1, false ); } It was displaying, but not responding to input
-
Sometimes we have objects which have timespans in our database, such as valid dates for coupons, or say active dates of a sale, or trigger, or some other event. in searching through these, we may want to give a user the ability to see all of these objects which were 'active', or whose timespan intersects a user's search criteria. So the