Home

Username   Password
 
       
Forgot Username or Password?
  • Home
  • Blog
  • Products
  • Buy
  • Consulting
  • Hosting
  • Support
  • Silverlight Memory Leak DataGrid, DataForm, DataTemplate, etc...

    Submitted by Tim Hollobon on Wed, 09/08/2010 - 09:44
    • Silverlight Memory Leak DataGrid DataTemplate DataForm

    Silverlight 4 is a fantastic platform. Unfortunately it suffers from memory leaks on some of the standard controls if they are created in a certain way and some third party controls will leak memory.

    On the Silverlight forums there is a thread that can be found here:

    http://forums.silverlight.net/forums/p/171739/466567.aspx#466567

    For example, if the XAML is created like this:

        <Grid x:Name="LayoutRoot" Background="White">
    

    Sample Code and Related Files:
    application/zip icon
    SilverlightUIElementLeakTester.zip
    • 1 comment
    • Read more
  • Dynamically retrieving the executing assembly version attribute - C#

    Submitted by Tim Hollobon on Tue, 09/15/2009 - 15:57
    • assembly version
    • Attribute
    • C#
    • Version

    In our C# project the version attribute is defined in a CS file as: 

    assembly: AssemblyVersion("3.6.2.5")]

    To dynamically retrieve that via code, use the command:

     

    • 1 comment
    • Read more
  • Override Default SPAN Tag for Composite Controls

    Submitted by Ben Hodson on Fri, 09/04/2009 - 10:04
    • ASP.NET
    • composite control

    When creating a composite control in ASP.NET, by default, the main container tag that holds all of your controls and HTML is output as a SPAN tag.  One of the issues with this default behaviour is that SPAN elements (at least according to the standard) are "inline" elements.  As opposed to something like "DIV" elements which are "block" level elements, SPAN tags are inline and should only contain other inline elements.  So if you are adding any block level elements to your composite control, in order to be aligned with standar

    • Add new comment
    • Read more
  • Add Icon for Custom Control / Composite Control

    Submitted by Ben Hodson on Thu, 09/03/2009 - 10:18
    • composite control
    • custom control

    When a custom control is placed on the toolbox, if it is a professionally made control, it usually has a really nice icon associated with it instead of the default ("paper-looking") icon that Visual Studio inserts when no icon is available.  When you build your own custom control, you can add an icon for the control and embed it in your component's DLL assembly so that it is shown on the toolbox whenever someone adds your control.

    • Add new comment
    • Read more
  • CSS File Include Order

    Submitted by Ben Hodson on Thu, 09/03/2009 - 09:24
    • cascading style sheets
    • CSS

    Most of the time, when elements are put in the HTML HEAD tag, order does not matter.  But in the case of CSS, not only do styles cascade from the include file to the local file to the element, but styles also cascade in the order that files are included in the page's HEAD tag.  The following is a quick test that shows how the order that files are included affects the rendering of a CSS styled element.  This CSS code has been tested on Internet Explorer 8, Safari 4, and Firefox 3.5. 

    • Add new comment
    • Read more
  • CSS Shorthands and Input Styling

    Submitted by Ben Hodson on Mon, 08/31/2009 - 13:50
    • ASP.NET
    • CSS
    • input styles

    The following is a list of useful shorthands for specifying typically large CSS properties in a small and succinct one line definition.  This not only keeps your CSS files clean and easy to read, but more importantly, it significantly reduces the size of your CSS files. 

    • 1 comment
    • Read more
  • Checking if Browser Supports Cookies (ASP.NET)

    Submitted by Ben Hodson on Thu, 07/30/2009 - 13:52
    • ASP.NET
    • cookies

    Most of the time, when you check forums about checking if a user's browser has cookies enabled, you will see posts that say you should use the following:

    • 4 comments
    • Read more
  • Performance benchmarks for ODBC vs. Oracle, MySql, SQL Server .NET Providers

    Submitted by Ben Hodson on Mon, 04/27/2009 - 14:35
    • .net provider
    • MySQL
    • odbc
    • oracle
    • SQL Server

    I did a simple benchmark for the 3 main databases (Oracle 11g, MySQL 5.1, SQL Server 2008) to see how using ODBC compares to using their native providers in .NET for all database access. To keep things on an even playing field, all 3 databases were run on the same machine, with the exact same database name, table name, and schema. Database authenticaton was used by all databases.

    • Add new comment
    • Read more
  • Connecting to SQL Server, Oracle, and MySQL with Database or Windows Authentication

    Submitted by Ben Hodson on Tue, 03/24/2009 - 14:10
    • MySQL
    • oracle
    • SQL Server

    I’ve created a tool to help test different connection strings and settings for the various databases. The information out there on certain database connection types is poor at best so this was put together over a week long process of testing and reverse engineering. A lot of forums and blog posts were pieced together to figure all of this out.

    • 1 comment
    • Read more
  • Get the list of ODBC data source names programatically using C#

    Submitted by Ben Hodson on Fri, 03/20/2009 - 12:35
    • C#
    • odbc

    Many times, you may need to get the list of currently set up ODBC data source names on the machine where your code is running from. There is no .NET API to get this list so you have to monkey with Windows registry a bit to find the list. There are 2 different types of ODBC data sources you can set up (User and System). The Data Source Names can be found in Windows by going to Administrative Tools->Data Sources(ODBC).

    • 17 comments
    • Read more
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • next ›
  • last »

Popular Articles

Last viewed:

  • Windows Server 2003 Configure RRAS (Routing and Remote Access Service) Site to Site VPN
  • Fixing Relative Paths in C# ASP.NET When Using Url Rewriting
  • ObjectDataSource TypeName with Constructor Parameters
  • C# Download File with Progress Bar
  • Export GridView or Other Data as Microsoft Excel (CSV) File with C#
  • Disable Button on Submit (Prevent multiple submits)

Recent comments

  • jkll
    13 hours 35 sec ago
  • Thank You
    1 day 12 hours ago
  • Another approach
    3 days 13 hours ago
  • Issue
    4 days 3 hours ago
  • thanks
    4 days 14 hours ago
  • Calendar date time
    4 days 19 hours ago
  • Nice Explanation
    4 days 23 hours ago
  • ramya
    1 week 20 hours ago
  • thank a lot
    1 week 1 day ago
  • Very useful, but...
    1 week 4 days ago