Welcome to RightHand's community place Sign in | Join | Help

december 2007 - Posts

Nicer way to check for a flag presence

Imagine you have this enum definition and a variable of same type: [Flags] public enum Tubo { One, Two } ... Tubo tubo = Tubo.One; Now, how do you check if a variable of type Tubo contains a flag, i.e. Tubo.One? Simple, like this: bool b = (tubo &
Posted by Miha Markic | 2 Comments
Filed under:

Slovenia/1st European Silverlight Challenge

SLODUG has launched the Slovene website of the 1st European Silverlight Challenge . You can read more about it in this post (in Slovene) or go directly to the website (also in Slovene). Believe in your talent! Take part in the “European Silverlight

Sometimes silent changes are for better

I've been reading monthly invoice from my ISP and a line caught my eye immediately. I've been a happy user of FTTH (fiber optics) 6Mb/6Mb Internet bandwidth for a while now and I saw two lines on my invoice: one charging me for 6/6 line and the
Posted by Miha Markic | 6 Comments
Filed under:

Custom embedding using CodeRush

It happened that I had to embed plenty of asp.net elements into tables, i.e: < table > < tr > < td > < asp:Label ... /> < asp:TextBox ... /> </ td > < td > < asp:Label ... /> < asp:TextBox ... /> </
Posted by Miha Markic | 1 Comments
Filed under: ,

Where has TimeZone2 class gone?

If you are following blogs about .net 3.5 you might have across this interesting post . It explains the benefits of new TimeZone2 class residing in .net 3.5 System.Core assembly. The best feature of TimeZone2 for me is the ability to convert time from
Posted by Miha Markic | 5 Comments
Filed under:

WebConfigurationManager.OpenWebConfiguration throws Failed to map the path '/'.

Create a ASP.NET Web Site and put this piece of code into Page_Load method: Configuration cfg = WebConfigurationManager.OpenWebConfiguration(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath); There are good chances you'll get Failed to map
Posted by Miha Markic | 2 Comments