Tuesday, 21 December 2010

Get the value in datarow by column index in ADO.NET

Question:
Working with datasets has always been problematic.
For each property access you have to test again and again.
This is a case for a utility method and since .Net 2 an application of extension methods.

Sunday, 10 October 2010

Asp.Net: Initialize DropDown from Url Query Parametes

Question:
How do I initialize my drop down lists with query parameters?


Regular Expression Cheat-Sheet (javascript examples)

Question:
What are the most common regular expression rules and operators?

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?

Sunday, 7 March 2010

Csharp: Syntax in one file

Question:
Is there a comprehensive overview of all syntax possibilities in c# ?

Thursday, 4 March 2010

Asp.Net: Create Simple Template Control

Question:
How to build a very simple Template Control in asp.net?
Do you have a sample for simplest Template Control.
Create your own Template Controls!

Wednesday, 24 February 2010

CSharp: Dates in universal sortable format

Question:
How to format dates as sortable universal standard format strings in C#?


CSharp: Pad Numbers with Leading Zeros

Question:
How to pad a number with leading Zeros?
How to get a 8 digits number block, where empty places are filled with zeros?
Formating a number with leading zeros.


Thursday, 18 February 2010

CSharp: Implement Indexer

Question:
How to implement an indexed property in c# ??
Do you have an example implementation of an Indexer in c#?