Converting HTML Hex Color Codes to RGB in ASP.NET

This is another post for my own remembrance. While working with controls in ASP.NET most of the back colors use the RGB color references instead of allowing you to quickly plug in the Hexadecimal numbers to the control.  At first glance this looks to be a daunting task as there doesn’t appear to be a quick solution for this within the Color class in either VB.NET or C#. But the solution is pretty simple

VB.NET Example

  1: MyControl.BackColor = ColorTranslator.FromHtml("#FFFFFF")

C# Example

  1: MyControl.BackColor = ColorTranslator.FromHtml("#FFFFFF");

It actually becomes pretty easy after you find it.  There are some pretty elegant solutions to this problem on the NET but a lot of them don’t take advantage to what Microsoft has already built into the .NET Framework.

Technorati Tags: ,,,

Posted on 9/24/2008 2:03:25 AM by admin

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: ASP.NET | C# | Programming | VB.NET

Tags: , , ,

VB.NET Equivalent of C# typeof()

I’ve been slowly adding things that I run across that I need to remember to my blog so that I can find them at a later time. As well as allowing other people with the same issue to find a solution for themselves.

  1: typeof(Widget)

is the equivalent in VB.NET of

  1: GetType(Widget)

Now the next time I start looking for this I’ll have it on the blog and easily searchable.

del.icio.us Tags: ,,

Technorati Tags: ,,

kick it on DotNetKicks.com

Posted on 9/24/2008 1:19:36 AM by admin

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: C# | Programming | VB.NET

Tags: , ,

DotNetNuke’s Shaun Walker interviewed on FLOSS Weekly

TWiT.TV — with Leo Laporte & FriendsShaun Walker creator of DotNetNuke is featured this week on Twit.tv.  In episode 41 of their weekly podcast they speak with him about DotNetNuke and the future of this framework on the ASP.NET framework.  You can find the the podcast on iTunes or at the Twit site – www.twit.tv/FLOSS.

Technorati Tags: ,,

del.icio.us Tags: ,,

kick it on DotNetKicks.com

Posted on 9/23/2008 2:35:55 PM by admin

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: DotNetNuke | Software

Tags: , ,

DotNetNuke 4.9.0 Released

On September 10, DotNetNuke Corportation released the latest version of DNN.  Version 4.9.0 comes as an interim release to fix some issues while we wait for the next major release with Cambrian. 

This release comes with a number of module updates including the following:

Also included with this new minor release is 2 new providers as well

This new version can be dowloaded from the DotNetNuke website.

del.icio.us Tags: ,,

Technorati Tags: ,,

kick it on DotNetKicks.com

Posted on 9/12/2008 8:44:59 PM by admin

Permalink | Comments (0) | Post RSSRSS comment feed |

Categories: Software | DotNetNuke | ASP.NET

Tags: , ,