Tuesday 22 February 2011

Asp.Net: Simple HttpModule sample using Session

Question:
How do I create a HttpModule in asp.net ?
How do I get access to the Session in a HttpModule ?
Do you have a simple sample of a HttpModule in dot.net ?

Thursday 17 February 2011

Asp.Net: Add embedded Javascript to custom control

Question:
I'm building a custom web server control. How do I add embedded javascript code to my control?
How to load javascript from a custom control as Webresource?

Sunday 13 February 2011

Asp.Net: Generic Recursive FindControl Method

Question:
How to find a control in the whole page not just in the child collection?
How to find recursively a control in the child hierarchy of a control?

Saturday 12 February 2011

Asp.Net: Using ViewState to store data on the page.

Question:
How do I store data on a page during post-back round-trips?
How to use ViewState on pages?

Friday 11 February 2011

Asp.Net: Load HTML into Composite Web Server Control

Question:
How to load HTML into web server control?
How to build a composite server control from loaded Html in Asp.Net?
Create WebServerControls dynamically from Html.

Tuesday 8 February 2011

CSharp: How to use delegates

Question:
Why should I use delegates?
How to use a delegate?

Thursday 3 February 2011

Csharp: Using predicates as arguments.

Question:
How to pass predicates as arguments to my methods?
I want to use predicates as test methods and pass them to a general test.

CSharp: Get a List from an array

Question:
I have an array and need a list.
How do I transform the array into a list of objects?


Wednesday 2 February 2011

Csharp: measuring execution time of code blocks

Question:
How to mesure execution time of a method in csharp?
Measuring any time interval in dot.Net.