C# and multicultural IsDate() and ToDate()
C# does not provide IsDate() function. Sometimes in your developer environment region settings are different from the live environment. In…
All technologies, only pure source code
C# does not provide IsDate() function. Sometimes in your developer environment region settings are different from the live environment. In…
Hi guys, I want in MVC to render a text with an image as an ActionLink. For creating a simple…
The purpose of this code is the detect how slow is your connection downloading a file from a site. First…
My initial problem was to extract from a SQL string generated by MySql, all fields. I had a string like…
First you add a new class as a ViewModel like: public class RoomViewModel : BaseViewModel { [here following code] }…
In this recipe I will show you how to add a hamburger menu to your Xamarin Forms application using the…
Read the file, remove the multiple line (but it saves one of them) in memory and put the contents back…
I recently needed to to implement a shortest-path algorithm (to identify preferred domain controllers using site link costs) and I…
public class Size { public string Name { get; set; } public int Height { get; set; } public int…
HTML5 API includes Drag and Drop (DnD) native functionality. The event listener methods for all the drag and drop events…
It’s easy by using the HttpContextWrapper HttpContextBase basecontext = (new HttpContextWrapper(HttpContext.Current)); Happy coding!
If you need to check if something is a number, in C# doesn’t exist a function for that. That I’ve…
If you work with Visual Studio 2015 and WebAPI, this short post is for you! We have to make our…
In the two previous post I discussed about the first step to creare this application and the implementation of the…
In my previsious post I discussed the first implementation of this application. In this post I’m explained how to implement…
In this tutorial, I use several techniques and tools. I use Microsoft Visual Studio 2015 and the latest version of…
Some people asked me the different between those two following code: Code 1 try { … } catch (Exception ex)…
Very often I found this problem and now I got a solution! I’ve compared some methods and I was decided…
I found a simple code to know the execution time of a method. First of all you have to import…
You can convert a string to hex or vice-versa with this methods. Example for real world; You want set /…
I’m looking for an answer to my regular expresssion problem in c#. I’m looking for a match on a specific…
Did you received this error when you try to login in your Owin app with Facebook? App Not Set Up:…
If you have problem returning dynamically drawn image from controller below informations may help. The task looks easy and should…
Register an app in the Microsot Account Developer Center Go to the Microsoft Account Developer Center and create a new…
You might have missed to register your Interface and class (which implements that inteface) registration in your code. e.g if…