DCSIMG
development,microsoft - urig - Tidbits from a .net life

Browse by Tags

Why you want to be a part of Alt.Net Israel
09 August 08 08:05 AM | urig | 4 comment(s)
I was fortunate today to take part in the first Alt.Net "unconference" to be held in Israel and let me tell you - it was an awesome experience! The concept of Alt.Net is that a group of .net enthusiasts get together and organize a conference by themselves for themselves to discuss .net, its past, present and future. Simply put, the audience organizes and gives the talks. Here's a more profound explanation: http://davybrion.com/blog/2008/08/altnet-what-does-it-mean/ The first Alt.Net...
Response.Cookies.Set() vs. Response.Cookies[] =
04 March 07 06:42 PM | urig | with no comments
I've stumbled upon behavior that I cannot understand in ASP.net's handling of the Response.Cookies object. The trigger for this post is a page where I have Response.Flush() followed a bit later with an attempt to write an HttpCookie to the Response. Everything works fine when I try to write the cookie like so: HttpContext.Current.Response.Cookies[name].Value = value; But when I use this alternate method: HttpCookie httpCookie = new HttpCookie(name, value); HttpContext.Current.Response.Cookies.Set...
How to enable programmatic access to VBA in Excel 2007
15 January 07 09:50 AM | urig | with no comments
Just had my first encounter with VSTO, trying to embed a C# macro in an Excel workbook. I fired up the ol' Visual Studio 2005, created a new "Excel Workbook" project and bumped straight into this: "Programmatic access to the Microsoft Office Visual Basic for Applications project system could not be enabled. If Microsoft Office Word or Microsoft Excel is running, it can prevent programmatic access from being enabled. Exit Word or Excel before opening or creating your project." A quick google gave...
How to name Private Methods in C#?
07 January 07 11:45 AM | urig | 1 comment(s)
I'm having a debate (with myself mostly) concerning the proper way to name private methods in C# projects. For some forgotten reason, I have been accustomed to use camel casing when naming private methods - as opposed to using Pascal casing for public methods. Example: private int getBlockInfo(int memberID) {...} public int GetBlockInfo(int memberID) {...} For me this seems very comfortable for differentiating between private "secret" methods within a class and public methods that are visible outside...
IIS 7.0 is here. Isn't it?
19 December 06 04:15 PM | urig | 1 comment(s)
I'm not 100% sure but it seems Microsoft has silently (?) launched IIS version 7.0 . This is said to be a part of Windows Vista . Oddly enough I've not seen any launch announcement from MS. Maybe I just missed it? The new version of IIS is said to implement a lesson from the Apache Web Server - modularity. Functionality previously embedded in older version of IIS has been relocated to modules that can optionally be installed alongside a core IIS server. This would allow for better security as administrators...
Team Foundation Source Control won’t Get Latest when you Check Out
23 November 06 03:45 PM | urig | 3 comment(s)
In a recent post , Leon Langleyben described a Team Foundation Source Control "feature" that is giving users a hard time. The "feature" is that the Check Out command in TFSC no longer performs a Get Latest on the file checked out, as we were accustomed to in VSS. In the older Visual SourceSafe, when you checked out a file VSS would get the latest version of the file to your local machine and only then open the file for you to work on. This is critical when working in Exclusive Checkout Mode, which...