• macbook lock screen keyboard shortcut

    control+shift+eject or if you don’t have an eject button: control-shift-fn-power button

  • linq to csv extension method

    Can be used to convert list of strongly typed objects to csv output.

  • ie10 imagebutton _dopostback undefined bug with update panel script manager

    IE10 has a nice new little bug which occurs with image buttons on 2nd or consecutive postback on a page which contains an update panel. You will notice the bug as a broad javascript error message, but behind the scenes the issue occurs due to a bad type conversion to an integer from a floating…

  • Multiple Stored Procedures with same return type in LINQ

    Previously you may have achieved this functionality using datareader. Now that you are using LINQ, you may be wondering how to achieve the same with lists of strongly typed objects. Quite a few articles out there have reproduced DataReader functionality with LINQ. This article suggests a new approach using the SqlDataSource to create an almost…

  • asp .net grid control common gridview operations update edit cancel sort paging

    There are many ways to accomplish the end result of what is displayed below. To display multiple records of data on the same page, you may alternatively use Repeater (my favorite of the dataview controls), DataList or ListView (also great). FormView and DetailsView are similar, but should be limited to smaller sets of data IMO…