c#

  • Lambda Functions in .Net

    Lambda expressions in .Net are denoted by the ‘=>’ symbol. These powerful operators can be used to create sleek, optimized loops that perform much faster. The usage below condenses the equivalent of at least 20 lines of two loops. (Sorry… Continue reading

  • Using jQuery and ScriptManager to update dynamic page elements

    I recently came across a situation where an element on the page was not updating dynamically after post backs. It was quick and easy to add an update panel and the necessary logic to use the built in asp .Net… Continue reading

  • Get Current Page Name in ASP .NET

    The code snippet below is a quick, easy to use function which allows you to get the current active page in an asp .net website/application. There are similar functions for getting header information about a page, however, after some research… Continue reading

  • Programmatically fire an event handler in ASP .NET

    I recently came across a situation which any web application developer may face where an assembly reference containing the code-behind for each ASPX page was deprecated and the original source code was no longer available. Since this code also includes… Continue reading