in

DotNetMarche

.NET Framework User Group delle Marche

This Blog

Syndication

ExternalBlogs

April 2008 - Posts

  • The importance of "conventions"

    I like in C# not to have the open bracket in newline, it is not the default setting of Visual Studio but I was used to this scheme since I worked with C++ in linux, so I’m used with it. This is a “convention” and seems not to be so important…until you work in a [...]
  • FeedBurner stats

    This morning I had a great surprise, I saw in feedburner 103 readers of my blog, it is really great for me to reach three digit count :D, it means that my blog interests some people. 103 is not such a great number, but thinking that in the world 100 person are interested in what [...]
  • ASP.Net and custom parameter for datasource controls

    ASp.net 2.0 introduces datasource controls, such as SqlDataSource and ObjectDataSource, these controls work quite well, expecially the objectDataSource that permits you to bind to methods of a custom object. In an application of mine there is a user control that has a datagrid with custom logic, that data should be enclosed in different pages, and [...]
  • SharePoint Technical Workshop

    Il 27 maggio si tiene ad Agno (svizzera) un workshop gratuito su Microsoft Sharepoint Server. Una seminario composto da una serie di sessioni tecniche di taglio pratico, dove Igor e Nicolai Brignoli spiegheranno attraverso esempi concreti come sfruttare gli strumenti Microsoft per la condivisione delle informazioni, per la collaborazione e incrementare la produttività individuale. Agenda e [...]
  • Writing a custom formatter for log4net

    Log4Net is certainly one of the most important instrumentation library  for logging. Let’s see how to extend, writing a custom formatter for exceptions. Exceptions are important things to log, and it is important to log more information as possible, here is how can you write a simple class to log exception public class ExceptionLayoutExtended : log4net.Layout.LayoutSkeleton [...]
  • Desktop Space

    I was always astonished when I think to the evolution of pc. I’m 34 years old and my first pc was a 8086 with a 13” monitor with a resolution of 640×480=307.200 pixel. Then I moved to a 14” monitor and I used to work mainly at 800×600 = 480.000 pixel, so I have 56% more [...]
  • Windows Xp and file copy

    This morning I select some folders from my external HD, CTRL+C and then CTRL-V in a folder of my secondary disk. The external disk begins to read at full speed, the OS shows me a windows that tells Preparing to copy operation That windows stands on my desktop for 20 minutes before it begins actually to copy [...]
  • Unknown feature of visual studio 2005 … javascript debugger

    One of my friends told me that one of the most interesting news of Visual studio 2008 is the ability to debug javascript ….. but this is possible even with visual studio 2005. Just try to write the line debugger; into javascript code and when you run the page you are prompted to attach a debugger, just attach [...]
  • Strings with Null characters

    Sometimes .NET surprise me even if it is a really long time I work with it, some days ago I discovered that a string can contains Null characters. This seems strange to me because chars are value type, and a value type sould never assume value nothing, but it can for string. I have an asp.net [...]
  • Working with MSHTML

    If you need to parse an html content, the MSHTML library can be a viable solution, it is quite simple to use even if it has some peculiarity, the first thing to do is to load data from a source, maybe you have the HTML content on a string, (perhaps you downloaded the page with [...]
  • Office Business Application: josh Protocol!

    Ho il piacere di condividere assieme a voi la soddisfazione che ho nel vedere josh Protocol! nella OBA unit di Microsoft. Ovviamente è presente anche josh che proprio in questi ultimi tempi ha fatto presa anche in Spagna Technorati tags: office business application, microsoft, it consult, protocollo informatico, josh, josh protocol!
  • CC.NEt and Unable to read the specified saved state. The configuration data may be invalid.

    Yesterday one of my colleagues stopped for a while the cc.net in our server, then this morning I look at the dashboard and find an error Unable to read the specified saved state. The configuration data may be invalid. after some minutes wendering in internet trying to find a solution I check the cc.net directory, in my [...]
  • Linq to SQl, Deferred or not?

    One of the most peculiar characteristic of Linq is Deferred execution, here is an example. IEnumerable<Customer> result = from c in context.Customers where c.ContactName.StartsWith("Maria") select c; foreach (Customer c in result) { Console.WriteLine("Id = {0} ContactName = {1}", c.Id, c.ContactName); } ExecuteStatementInDb("UPDATE Customers Set ContactName = ‘Modified’ where CustomerId = ‘ALFKI’"); foreach [...]
  • LINQ Manage the DataContext

    One of the most important stuff, when dealing with an orm, is to manage the lifecycle of the Context, call it Session in NHibernate or DataContext in Linq, the problem is the same. One of the most obvious solution is to store the Context in CallContext of System.Runtime.Remoting.Messaging object. This object permits to store object [...]
  • Technorati tags

    I realized that technorati tags does not work well in my blog, if I click in tags cloud technorati tells me that are no post with that tag. I’ll investigate the problem alk. Tags: Technorati Tags
More Posts Next page »
Powered by Community Server (Commercial Edition), by Telligent Systems