Bing Code Search Add-in for Visual Studio 28 April 2014 Guus-Beltman Developing, C# code snippets Bing Code Search for Visual Studio 2013 helps developers find and reuse code samples on the web more easily by bringing the code search experience directly into Visual Studio. With this extension, a developer can search sites such as MSDN, StackOverflow, CSharp411 and Dotnetperls and find, copy and ... [More]
Tip of the day: Random sort a List of objects with Linq 21 April 2014 Guus-Beltman C# code snippets Let’s say you have a list of objects and you want a random presentation to your website visitor. Below is a simple, but effective random algorithm in C# with Linq-to-object by using the GUID type (see line 10 below). 1: List<MemorySearchResult> list = Session["MemoryList"] as List<Memor... [More]
Great image resizing module for asp.net 23 January 2013 Guus-Beltman Developing, C# code snippets, ASP.NET Just found a great ASP.NET module for resizing, crop, rotate and watermarking images. You can find it on imageresizing.net. What’s so great about it is it’s simplicity, after installing, you can resizing images by url: image.jpg?width=300 It’s support a lot of image formats and can also re-encod... [More]
Sending mail with ASP.NET and Gmail 24 November 2012 Guus-Beltman C# code snippets, Web After a server upgrade I had to setup my mail again. It seems that IIS7 has lost it’s core mail functionality, so I tried to use the SMTP service from Gmail for sending my e-mail. First thing I did is to setup a simple test page, that I would like to share with you. Front The page contains a... [More]
Using .NET methods in your XSLT 21 November 2012 Guus-Beltman Developing, C# code snippets, XSLT Not many people know that it is possible to use a .NET object as an extension object when transforming XML with XSLT. Imagine that you want to recalculate the price of a book and round the result number. Impossible to calculate within XSLT, since it’s a transformation language and not a programming ... [More]