Thursday, 9 September 2010

Get the reference levels of all tables in a database.

Question:
We need a script to truncate tables in the right order to prevent Foreign Key violations.

Answer:
The script below can be used to determine the reference levels of all tables in a database.

Determine reference levels of all tables
Wednesday, 25 August 2010

Dot.Net: Discover Attributs on Properties Sample

Question:
How to discover attributes in a class?
I do I find all properties that are annotated with marker attribute?

Dot.Net:Create Attribut Sample

Question:
How do I create a custom attribute in dot.net?
Do you have a simple sample for attribute creation in c# / dot.net?

Wednesday, 11 August 2010

After restoring a database the owner has changed.

Question:
I restored a db from my production environment.
After that step certain things became strange. It was for example now impossible to install diagram support.
I always receive this error.


Sunday, 11 April 2010

Javascript: stop event propagation on click event

Question:
How to stop my click event to propagate to the document level?

I have a click event on a link and one on the div container around it. How do I prevent the click event, that I handle in the click event handler on the link, to bubble up to the container?


Wednesday, 31 March 2010

Dot.Net: List of all Supported Cultures

Question:
Do you have a list of all dot.net supported cultures?

Wednesday, 10 March 2010

Asp.Net: UpdatePanel Javascript on EndRequest

Question:
I want to trigger some javascript function after a postback of my Asp.Net UpdatePanel. How do I do this?
How to execute js after UpdatePanel postback?