Geeks With Blogs
Marcin Celej blog August 2007 Entries
WCF vs Remoting - sample project is now published
When I started evaluation of Windows Communication Foundation I created a project to check if perfomance comparison presented by Microsoft here (A Performance Comparison of Windows Communication Foundation (WCF) with Existing Distributed Communication Technologies) is true. Results of the research was published on my blog here: WCF vs. Remoting (with DataSet)- performance comparison. But there were voices in the air to publish also the project. I finally found some time to do it. I finally tried ......

Posted On Thursday, August 23, 2007 8:00 AM

How to Clean Sources from bin and obj folders
I use a great tool that allows me to easily clean-up 'mess' that Visual Studio generates when it compiles code. The bin and obj folders are not always properly cleaned when using 'Clean solution' functionality from VS. In such case there is a tool: Clean Source (http://www.codinghorror.co... Here is a description: This application does one thing. It adds an explorer shell menu to folders that when selected will recursively delete the contents of the bin, obj and setup folders. ......

Posted On Tuesday, August 21, 2007 8:28 AM

ViewState best practice 1 - wrap access to 'weak variable'
I've been working on ASP.NET project lately. What I found is not-pefect-usage of weakly typed constructs such as ViewState, Session, Cache etc. For me it's obvious that code that contains something like this: this.ViewState["Age"] repeated many times is not-perfect. I believe, it is natural to wrap access to the ViewState into private property thath is strongly typed and is much cleaner to use in your code. What I advise is the snippet shown below: private int? Age { get { return this.ViewState["Age"]; ......

Posted On Tuesday, August 7, 2007 7:03 PM

Creating controls dynamically in ASP.NET in Click event
Few days ago I worked on a UserControl that displays dynamic content depending on a workflow step (the workflow does not matter here as the control could display data dynamically returned from a Web Service or database or whatever there is in the developer's world). I had a big problem as the controls can be added to the parent control (UserControl here) only in OnInit event. Well, you can add them in any other event but when you do it you won't get the results gathered by the controls after there ......

Posted On Tuesday, August 7, 2007 7:03 PM

Incremental search in Visual Studio
Maybe you all know the feature, but maybe you don't. I've just found (here) a description of incremental search. It works in my Visual Studio 2005. Just press CTRL + i and type something.The VS will find the first phrase you type (without the search window :-). To find next occur just press CTRL + i again. Press ESC to exit the search. Excellent feature. I used it in a few years ago but I forgot that it exists. Thank you Sara ......

Posted On Thursday, August 2, 2007 7:49 AM

Copyright © Marcin Celej | Powered by: GeeksWithBlogs.net