-
|
There is a sample chapter from my upcoming book on all things performance related within the Microsoft platform. Specifically, the book will be about performance testing, profiling and optimisation for web and desktop applications developed using Microsoft.NET. This sample chapter is just a teaser and the book itself goes into great detail about how to setup a performance test rig using Visual Studio, how to record, manage and analyse performance metrics, and what you can change to make your apps fly. Anyways, the sample chapter is located here . ( http://www.simple-talk.com/dotnet/performance/understanding-performance-profiling-targets/ ) Hope you like it. Read More...
|
-
|
If you have a data table which looks like this one below and holds child,parent rows at the same table; ID ParentID Name guid1 null parent 1 guid2 guid1 child for parent 1 so on so on so on and you wont to retrieve all records from the table in a table looks like below; Parent Childs parent 1 child 1 for parent 1 child 2 for parent 1 child 3 for parent 1 …. Parent 2 child 1 for parent 2 child 2 for parent 2 …. This means that i have to make a recursive query in Sql to retrieve it this way. but with LINQ its more easy to be done, see the query below; 1: var q= from p in TypedDataTable 2: where p.ParentID == null // well get all parents 3: select new 4: { 5: ParentID = p.ParentID, 6: child = from c in TypedDataTable 7: where c.ParentID == p.ID...
|
-
|
Linq is used generally to get and manipulate data by using Linq to Sql, Linq to Entities or Linq to Xml. However, it can work on many collections in .NET Framework. Now in this post, I'll show how to work on Page Control Collection with Linq. Think about the scenario you want to get every textboxes that has a text in it. To see which ones we select add them a text you want. Create a new .aspx page and add several textboxes to it. They can be directly in page or another control (i.e. a panel control). Then add the code below to [Further] Read More...
|
-
|
So really, it is just about here! I leave in just over 48 hours to head to Las Vegas for the third annual US OpenForce (DotNetNuke conference), once again being held at Mandalay Bay along with DevConnections. If the previous two years were any sort of indicators this year is promising to be a good time! I’m excited about heading out to Vegas again, and getting to see all my DotNetNuke brethren. It’s going to be another busy week, registration and such on Monday, a keynote on Monday night. Conference...( read more ) Read More...
|
-
|
On one of the projects I am working on I needed a way to work get the JSON string generated from some sort of serialization process. If you are working Ajax or MVC controller actions, this work is done for you automatically, but I wanted the string all by itself. After some searching I ran across this article How to: Serialize and Deserialize JSON Data . The article is great, and gave me everything I needed to know, but I thought I would make it a little cleaner and wrap it all up in a class. Below is the a generic class that will serialize and deserialize JSON: using System.IO; using System.Runtime.Serialization.Json; public class JsonSerializer { public JsonSerializer() { } public string Serialize(T instance) { using (MemoryStream stream Read...
|
-
|
I've been spending quality latenight geek time with YetAnotherForum.NET 1.9.4 beta lately. I am so excited about the new features coming and the customizations I'm working on. The two are feeding off one another; so many new features in 1.9.4, both front-end and back are firing me up to highlight YAF.NET and bring more community services into its domain of cool. It's difficult not to blog about what's coming, but I never blog about something until it's on the page. The only thing I can say is prepare for an avalanche of blog posts when YetAnotherForum.NET 1.9.4 goes live on Sueetie.com. There are many custom ASPNET controls in YAF.NET, but not a generic <ForumLink /> control that did precisely...
|
-
|
Microsoft has released a final version of its book “ Microsoft Application Architecture Guide, 2nd Edition ”. The book is described as: This guide is available online here in the MSDN Library and will be available in the Fall of 2009 as a Microsoft Press book, ISBN# 9780735627109, that you can purchase through local and online booksellers. The guide is intended to help developers and solution architects design and build effective, high quality applications using the Microsoft platform and the .NET Framework more quickly and with less risk; it provides guidance for using architecture principles, design principles, and patterns that are tried and trusted. The guidance is presented in sections that correspond to major architecture and design focus...
|
-
|
There is a new feature in TestDriven.Net 2.24 (and 3.0 Alpha) that should greatly simplify the deployment and versioning of test runner plug-ins. In previous versions it was important that a compatible test runner plug-in was installed for each test framework you use. This was manageable if all of your projects used the same version of a test framework – however it could quickly get out of hand if a project referenced a different framework version. Because it isn’t always feasible to upgrade all test projects at the same time, teams could end up trapped using an old version of a test framework or with unit test projects that are difficult to run. As of TesDriven.Net 2.24, it is now possible to include the test runner alongside its test framework...
|
-
|
It all started because I couldn't find a way to automatically scroll any element into view in Silverlight (a feature that exists in WPF). I take that back, I could get the job done with a ListBox's ScrollIntoView(ListBoxItem item) method, but I hardly wanted everything on my screen to be wrapped as a ListBoxItem; it feels as dirty as it sounds. Anyways, here is the code. /* Extension Methods */ public static class FrameworkElementExtensions { private const int ScrollPadding = 10; public static void BringIntoView( this FrameworkElement frameworkElement) { var parent = VisualTreeHelper.GetParent(frameworkElement); while (parent != null ) { parent = VisualTreeHelper.GetParent(parent); var scrollViewer = parent as ScrollViewer; if (scrollViewer...
|
-
|
as usual, the book link list can be found here . Read More...
|