11 October 2009

20 done

20 problems solved!

Now I have routines that can add, subtract, multiply, divide and even get factorial of really big numbers.

05 June 2009

Ages ago I created a structure of nested master pages for a web-site I working on.
It works fine. Not without teething glitches, but it works.

Today I noticed warnings in a build.
We have Page_Load in each masterpage and it warns about the fact one hides another...

Searching for best practice samples I found this article.

26 May 2009

swoopo.com - funny game
List.Find(Predicate) - usage with lambda
TypeMock and asp.net - when and how we are going to test it?
TeamCity and its build server - isn't it just department of Microsoft?
Ford Mondeo 05, 2l, 70kmiles

19 May 2009

It is good to know <div><\div> and <div />  are different

14 May 2009

  • how pass delegate as a parameter
  • how asp Button serve OnCommand event
  • pair of tags for bullets ul and li
  • lots of Citroen C4 reviews

05 January 2009

when *.designer.cs is out of sync

In asp.net every page or control has three parts:
  • asp markup part (*.aspx, *.ascx) - that is where you build a structure of you web page or control;
  • *.cs - that is where you put your code behind
  • *.design.cs - that is werd side which suppose to be controlled by IDE (Visual Studio), it contains all identities of every control on your page.
It happens, it happens too often to me that *.desing.cs file get out of sync with mark-up. It usually happens when I rename or move User Control and fix namespace etc. Code doesn't compile, or could not find a control by name. 

Today I came quite severe case of such misbehaviour and maybe I spent 30 minutes or so back and forward and trying to resolve it.
I found solution browsing forums:
  1. Delete the desing.cs file
  2. Right Click on the file, Convert to Web Application.

It might react with Generic Exception or even NotImplemented Exception. :) Do not worry - Exit Studio, delete all files in bin and obj folders and Open your solution again. Then repeat attempt to Convert to Web Application.