February 2009 - Posts

1
Comments

Sorting a generic list in ascending or descending order by Kiyoshi

Sorting a generic list can be as easy as 3 lines.  Use the Sort method to accomplish this task.  More info about List<T> can be found here .       class TestSort     {        ...
1
Comments

Render aspx page as a string by Kiyoshi

To render a page into a string use a StringWriter object.  This can be useful when making AJAX type of queries.  Using an aspx page for AJAX calls makes it easy to reference session state information.          ...
More Posts