Tagged pages

Found 47 articles tagged with .NET

QR code MVC html helper
Display runtime generated QR code in MVC page
0
This article is based on one of my previous topic Advanced Base64 image extension in ASP.NET MVC. It uses the same concept to display image on the page and to cache it, but it involves QR code bitmap generation which is basically a NuGet package use... read more
Clean stop of Windows Service in .NET
Stop Windows Service in the proper manner in C#
0
The common reason I wrote Windows Services applications for are usually workers. For example, you need to read messages from the queue and process them... read more
Advanced Base64 image extension in ASP.NET MVC
Advanced base64 image rendering in a Razor in ASP.NET MVC
0
Serializing images to base64 string is well known technique to reduce requests per page. Each image on the page produces a separate request while page is loading... read more
ASP.NET Core Web API versioning
Simple way to setup versioning in ASP.NET Core WebAPI
 
0
When it comes to WebAPI many project overlook the versioning aspect. The whole concept of WebAPI is to serve multiple types of clients which can be based on different platforms, run on different devices etc... read more
Google Service Account authentication in .NET
Authenticate app with service account for working with Google services
0
In case you are a .NET developer and you are using Google Cloud platform, eventually your apps or services will have to interact with Google Cloud (GCE) services. Good thing is that complete GCE is exposed through REST API... read more
Dictionary to object in C#
Create an object from dictionary collection
 
0
Dictionaries are very useful as data holders for any type of the code in C#. You can easily manipulate data stored on collections, but there are disadvantages like posting data to REST JSON service... read more
Simple Office365 authentication
Use Office365 account login for your application
0
With so many online and cloud based services, adding one more additional account for your application adds additional complexity level for your users since they will have to manage one more account and remember one more password. Microsft ASP.NET comes with pretty nice built in provides for social networks, but for office usage social networks are not so convenient to be used. ... read more
MSMQ recovery with .NET
Using MSMQ with message recovery in .NET
 
0
MSMQ is a bit old stuff and there are bunch of other products out here which perform better in most of the scenarios, but MSMQ is still used in a lot of solutions and Microsoft still did not announce support ending for MSMQ so it will be for sure some more time around.One of the stuff that is missing as out of the box feature in MSMQ is recovery. In scenarios you get the message from the queue and try to process, and process fails, in some of the cases you might want to try to process the message again... read more
Serialize DataTable to JSON with just few lines of code
Generate JSON string from DataTable in C#
0
Although JSON is widely used as a format for sharing the data, there are still existing solutions or modules that still rely on ADO and DataTables. Even today it very common to see some piece of code which deals with DataTable or DataReader for the performance reasons... read more
Simplified FileAttributes usage with extension methods
Useful extension methods for common used file and folder attributes
0
In case you are working on a small project where you just store some files and access them, you do not really need a database to achieve accessibility and additional info to files or folders. Filesystem itself is providing some stuff which can be useful for this... read more