Jan 16, 2010

Two-way binding is only supported for properties exception.

That was very strange. I used #Bind in the markup of a user control in order to set a property value and got this nasty exception.

It told me nothing. I couldn't figure out what was wrong with the property and what does it mean that the property is not valid.

I did what every one of you will probably do ;)
Google with the exception and found that if you convert the property from the type it has to string it should work.

Couldn't make it.
Probably my scenario is different.
I will write another blogpost as soon as I find the solution. For now I worked it around another way - using the code behind ;)

Jan 13, 2010

Do it worse!

Here is a very interesting blog post a collegue of mine accidently found and posted to me:

http://thedailywtf.com/Articles/The-Utlimate-State-Selector.aspx

It is PHP but a regular web developer (even being ASP.NET developer) would realise the problem and the great mind behind this code :).

Lesson learned - your code is great as there can always be a worse solution :).