Skip to content

Knowledgebase

Close Button

Tag: C#

Split PDF in C# for free with .NET Core and iText.Kernel.Pdf

23 November, 2021 Roel van Lisdonk 0 Comments Uncategorized

using iText.Kernel.Pdf; namespace RvvFacturatie.Services { public class PdfService { public void Split(string filePath, string outputFolderPath) { // Make sure the output folder exists and is empty. if (Directory.Exists(filePath)) { Directory.Delete(filePath, true); } Directory.CreateDirectory(outputFolderPath); using (var

Read More

How to create WordPress blog posts from C# with HttpClient and the WordPress REST API on Docker for Windows 10

18 June, 2018 Roel van Lisdonk 1 Comment Uncategorized

    To create WordPress blog posts from C# I will be using docker container on my Windows 10 Pro installation. Before installing docker on Windows 10 make sure the Windows 10 feature “Hyper-V” is

Read More

Map network drive in C#

4 January, 2018 Roel van Lisdonk 1 Comment Uncategorized

// Create network drive mapping System.Diagnostics.Process.Start(“net.exe”, @”use K: “”\\my.server.com\Websites\Mail“” /user:MyDomain\admin MySuperSecretPassword”).WaitForExit(); // Remove network drive mapping System.Diagnostics.Process.Start(“net.exe”, @”use K: /delete”).WaitForExit();

Read More

Fingerprint bundles in path, not in query parameter with System.Web.Optimization and Visual Studio 2015

28 July, 2015 Roel van Lisdonk 0 Comments Uncategorized

In my previous post (http://www.roelvanlisdonk.nl/?p=4550) I explained how to: – create a new ASP .NET MVC 5 .NET 4.6 project in Visual Studio 2015 – add static caching, add url rewrites – add fingerprinting to

Read More

Cache busting / fingerprinting bundles with System.Web.Optimization and Visual Studio 2015

28 July, 2015 Roel van Lisdonk 1 Comment Uncategorized

I like to use client build systems like grunt, gulp, webpack etc. to bundle and minify JavaScript and CSS files, but on a resent project I had to use the Microsoft Web optimization framework.  

Read More

How to send a free SMS from C#

10 April, 2015 Roel van Lisdonk 1 Comment Uncategorized

I used the following code to send a free SMS from C#, by using the messagebird REST service.   using System; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace DocumentenService.Client { public class Program { public

Read More

UseWebApi not found / missing in Web API 2.2

18 March, 2015 Roel van Lisdonk 0 Comments Uncategorized

If the IAppBuilder interface does not contain a “UseWebApi” function, this might be caused by a missing NuGetPackage “Microsoft.AspNet.WebApi.Owin”.   After installing this NuGetPackage the function was available.     See: http://www.jeffwids.com/post/where-does-iappbuilderusewebapi-come-from

Read More

One of the most important things to remember: In C# and JavaScript, object references are passed to functions by value not by reference

4 February, 2015 Roel van Lisdonk 0 Comments Uncategorized

By default C# and JavaScript pass object references by value not by reference, but what does that mean? Well if you assign an object to a variable, this variable is just a pointer to that

Read More

How to rename an user in Active Directory with C#

15 January, 2015 Roel van Lisdonk 5 Comments Uncategorized

  If you want to rename an user in Active Directory by using C#, you can use the following code: using System; using System.Collections.Generic; using System.DirectoryServices; using System.DirectoryServices.AccountManagement; using System.Linq; using System.Text; using System.Threading.Tasks; namespace

Read More

Most developers say: code comments are evil, I agree and I don’t agree…

28 November, 2014 Roel van Lisdonk 0 Comments Uncategorized

Most developers I know say: don’t write any comments, because they are evil and little puppies will dye if you do. The arguments they give: code comments will get out of date code should be

Read More

Posts pagination

Page 1 Page 2 … Page 20 Next page

Tags

Angular (16) AngularJS (28) ASP .NET (66) C# (191) Chrome (7) CSS (27) Entity Framework (17) Excel (9) HTML (8) IIS (29) Integration Services (18) Internet Explorer (11) Javascript (70) jQuery (7) Kendo (6) Kendo UI (16) LINQ (10) LLBLGen (13) MVC (7) NAnt (9) Outlook (19) Outsystems (6) PowerPivot (9) PowerShell (31) Reporting Services (21) Setup Packages (14) SharePoint (28) Silverlight (15) SQL Server (88) SSIS (17) T-SQL (44) Telerik (12) TFS (11) TypeScript (13) Unit tests (15) Visual Studio (101) Visual Studio Code (8) VMWare (10) WCF (12) WCF RIA Services (7) Windows (11) Windows 7 (34) Windows 8 (12) WPF (8) XML - XSLT - XPath (8)

Archive

  • January 2023 (1)
  • June 2022 (1)
  • December 2021 (1)
  • November 2021 (2)
  • October 2021 (1)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (3)
  • June 2021 (1)
  • April 2021 (2)
  • March 2021 (26)
  • October 2020 (1)
  • September 2020 (5)
  • August 2020 (5)
  • July 2020 (7)
  • June 2020 (18)
  • May 2019 (1)
  • March 2019 (1)
  • February 2019 (5)
  • January 2019 (7)
  • December 2018 (3)
  • November 2018 (1)
  • October 2018 (5)
  • September 2018 (5)
  • July 2018 (2)
  • June 2018 (3)
  • May 2018 (1)
  • January 2018 (1)
  • December 2017 (1)
  • November 2017 (5)
  • October 2017 (2)
  • September 2017 (2)
  • July 2017 (1)
  • June 2017 (5)
  • May 2017 (1)
  • April 2017 (1)
  • March 2017 (1)
  • February 2017 (3)
  • January 2017 (2)
  • November 2016 (2)
  • October 2016 (5)
  • September 2016 (2)
  • August 2016 (2)
  • July 2016 (4)
  • June 2016 (6)
  • May 2016 (6)
  • April 2016 (4)
  • March 2016 (3)
  • February 2016 (4)
  • January 2016 (5)
  • December 2015 (9)
  • November 2015 (4)
  • October 2015 (10)
  • September 2015 (10)
  • July 2015 (4)
  • June 2015 (7)
  • May 2015 (7)
  • April 2015 (3)
  • March 2015 (6)
  • February 2015 (3)
  • January 2015 (6)
  • December 2014 (9)
  • November 2014 (12)
  • October 2014 (12)
  • September 2014 (5)
  • August 2014 (1)
  • July 2014 (14)
  • June 2014 (14)
  • May 2014 (7)
  • April 2014 (8)
  • March 2014 (5)
  • February 2014 (1)
  • January 2014 (9)
  • December 2013 (5)
  • November 2013 (9)
  • October 2013 (8)
  • September 2013 (22)
  • August 2013 (5)
  • July 2013 (1)
  • June 2013 (13)
  • May 2013 (5)
  • April 2013 (10)
  • March 2013 (2)
  • February 2013 (3)
  • January 2013 (3)
  • December 2012 (5)
  • November 2012 (9)
  • October 2012 (8)
  • September 2012 (2)
  • August 2012 (2)
  • July 2012 (9)
  • June 2012 (3)
  • May 2012 (12)
  • April 2012 (4)
  • March 2012 (14)
  • February 2012 (8)
  • January 2012 (11)
  • December 2011 (16)
  • November 2011 (14)
  • October 2011 (11)
  • September 2011 (3)
  • August 2011 (7)
  • July 2011 (2)
  • June 2011 (7)
  • May 2011 (16)
  • April 2011 (10)
  • March 2011 (4)
  • February 2011 (3)
  • January 2011 (15)
  • December 2010 (6)
  • November 2010 (15)
  • October 2010 (9)
  • September 2010 (13)
  • August 2010 (22)
  • July 2010 (8)
  • June 2010 (27)
  • May 2010 (11)
  • April 2010 (17)
  • March 2010 (40)
  • February 2010 (12)
  • January 2010 (24)
  • December 2009 (29)
  • November 2009 (3)
  • October 2009 (23)
  • September 2009 (13)
  • August 2009 (10)
  • July 2009 (4)
  • June 2009 (31)
  • May 2009 (81)
  • April 2009 (14)
  • March 2009 (25)
  • February 2009 (4)
  • January 2009 (4)

Construction WordPress Theme By Themespride