Creating a Gantt Chart with the MS Chart Controls

Posted by: Aaron Goldenthal 5/15/2010 3:33 PM

A recent project had me diving head first into creating charts in ASP.NET.  Hoping to find a free alternative, I turned to the Microsoft Chart Controls which provides a powerful set of tools to create a variety of chart types.  One of the required charts was a simple Gantt chart, which we’ll be creating here using a stacked bar chart. This article assumes you have a working level knowledge of using the Microsoft Chart Controls.  If you need help with the basics, there&rsquo... [More]
Tags:
Categories: Charting
E-mail | Kick it! | DZone it! | del.icio.us Permalink | Comments (4) | Post RSSRSS comment feed

Using a Counter Table to Get a Series of Dates

Posted by: Aaron Goldenthal 4/18/2010 9:28 PM

There are cases where having a table of sequential integers in your database can greatly simplify certain types of queries.  One common example is to get a series of dates. To illustrate how this can be used, first we’ll create a table.  In this case there’s only one column which contains the integers, and we’ll set that as the clustered primary key. 1: CREATE TABLE [dbo].[Counters] 2: ( 3: [CounterID] [int] NOT NULL, 4: CONSTRAINT [PK_Cou... [More]
Tags:
Categories: SQL
E-mail | Kick it! | DZone it! | del.icio.us Permalink | Comments (1) | Post RSSRSS comment feed

Using jQuery Impromptu With ASP.NET

Posted by: Aaron Goldenthal 11/11/2009 5:13 PM

I’ve been using jQuery a lot recently, and one of my favorite extensions is Trent Richardson's Impromptu.  Impromptu provides a very easy way to prompt the user for input, and is a much more flexible replacement for JavaScript alert, prompt, and confirm.  The syntax is actually very straightforward, but especially for more complex prompts it can be a little cumbersome to build the prompts.  To help simplify this, I’ve created a set of helper classes to work with Improm... [More]
Tags: ,
Categories:
E-mail | Kick it! | DZone it! | del.icio.us Permalink | Comments (2) | Post RSSRSS comment feed

Creating Custom Data Source Parameters

Posted by: Aaron Goldenthal 8/9/2009 10:58 PM

I’m a fan of using the data source controls to simplify data access.  While there’s a reasonable set of Parameters that come with the framework, it’s easy to quickly get to a point where you want functionality that doesn’t automatically come from one of these parameters.  You can always use the Parameter and update the value programmatically, but you can end up with a lot of logic repeated in various Inserting/Updating/Deleting events.  Luckily, creating a custom data source Param... [More]
Tags: ,
Categories: Data Controls
E-mail | Kick it! | DZone it! | del.icio.us Permalink | Comments (1) | Post RSSRSS comment feed

Creating a Data Control Field – The CounterField

Posted by: Aaron Goldenthal 5/25/2009 9:45 PM

I’ve created a lot of GridViews to display a lot of data.  In many cases they’re simply displaying tabular data and they include one column with a counter cell, typically created with markup like: 1: <asp:TemplateField HeaderText="#"> 2: <ItemTemplate><%# Container.DataItemIndex + 1 %></ItemTemplate> 3: </asp:TemplateField> While this is not overly complicated, rather than create a field like this yet anot... [More]
Tags: , , ,
Categories: Data Controls
E-mail | Kick it! | DZone it! | del.icio.us Permalink | Comments (2) | Post RSSRSS comment feed