
Image from Pexels
Tagged articles - .NET
Found 104 articles tagged with .NET
19
Nov
2015
Debugging Windows Service application with console in C#
.NET229 titlesAn easier way to debug and develop Windows Services
0
Developing Windows Service might a a real headache since you do not have any visual part to see the output. Even if you want to rely on Visual Studio debugger you need to install the service, stop it (if already running), deploy, start the service from Windows MMC and finally hook up Visual Studio to the running service process...read more
30
Oct
2015
IP address filtering from C# code in ASP.NET MVC and Web Api
.NET229 titlesRestrict or allow specific IP addresses to access your WebApi or MVC
0
Last year I wrote an article about IP address filtering on MVC and WebApi Restrict Access to an MVC Action or Controller based on IP address. Over time the requirements for IP filtering in several web based application increased, so I had t work on this class to make it more extendible and reusable in different scenarios...read more
22
Oct
2015
.NET managed scheduled task runner
.NET229 titlesScheduled managed code execution in .NET
0
Sometime ago I wrote an article about Windows Scheduled Task vs Windows Service where I compared and listed benefits and drawbacks of using scheduled tasks in Windows and Windows Services for executing certain operation which repeats in some time span. However idea of executing tasks in a single Windows Service is very useful if you need to execute task in a short time span plus you have a full control including logging and other fine grained customization in case you write the task in your code...read more
25
Sep
2015
Easy collection comparing in C#
.NET229 titlesCopmare collections in C# the easy way
0
Collections are part of pretty much any application and they are convenient to store any type of data. Introducing LINQ in .NET things got a lot easier as your code does not need to be full with loops for performing simple operations on collections of any type...read more
25
Sep
2015
Multiple console output in C#
.NET229 titlesWrite console output to file and screen at the same time
0
Console applications are the simplest one and very convenient when you need to quickly test some functionality. Some time the functionality that you test with console application may take time and since it is test usually it happens that it crashes...read more
30
Aug
2015
JSON data validation in C#
.NET229 titlesValidate JSON data with C# in .NET framework 4
0
JSON is slowly but certainly taking over the throne of XML. It is much lighter, a lot easier to deserialize, but still there are some features that XML is better in...read more
08
Jul
2015
Changing service reference configuration in the runtine
.NET229 titlesUpdating service reference without restarting your applcation
0
Using web services in C# and in general in .NET based applications is really easy. All you need is a service URL and Visual Studio will generate both proxy classes for service communication and configuration for web service endpoints and bindings...read more
17
Jun
2015
Managing keys for shared collections in .NET
.NET229 titlesEnsuring unique keys for shared collections in .NET
0
Dealing with shared collection in application is always a bit tricky. You have to take care of concurrent access if you are accessing from multiple threads.
One more thing which does not look so important as it is not difficult to implement is managing keys for addressing values...read more
12
Jun
2015
Auto reload application config in .NET
.NET229 titlesReflect config file changes in application in a runtime
0
In .NET working with configuration is really easy and there are bunch of .NET classes that rely on config values so you do not have to specify values in their constructors. For me it a common practice to instantiate database connections of WCF client by only creating an instance with parameterless constructor while keeping values in config file...read more
02
Jun
2015
Easy and simple way to bind ADO object to POCO object
.NET229 titlesSimple one way binding of ADO database objects to POCO
0
This article is base don the article I wrote in September last year. Basically I wrote this piece of code because I needed something really lite for one way binding...read more
24
May
2015
PowerConsole extension to System.Console
.NET229 titles.NET console extended
0
Most of developers, at least all the ones I know mostly use Console to test their code as it is the quickest way to do it. Despite unit tests, console is a fastest way to test your code where you can easily output the results.
However if you have a lot of text in output you can get lost in results...read more
13
May
2015
Reading config value to a proper data type
.NET229 titlesAutomatic conversion of values from app.config
0
Reading from application config is pretty easy in .NET. You literally need one line to fetch the value...read more
18
Apr
2015
Generate sitemap.xml on the fly in Umbraco CMS
Umbraco CMS 25 titlesSimple sitemap.xml Umbraco handler
0
Sitemap.xml is important component of SEO which is responsible for indexing your website. Search engine robots are generating indexes of your website based on this file.
Since content in Umbraco website is dynamic, it makes not so much sence to have static sitemap.xml file for indexing your content...read more
16
Apr
2015
Fast image search in .NET using C#
.NET229 titlesSearching images on the file system with C#
0
Searching files on the file system is pretty easy using System.IO namespace classes. The problem is if you need to youery file system with some things which are related to a file, but not related to file system itself...read more
14
Apr
2015
Benefits of binary serialization in C#
.NET229 titlesManipulationg with object instances using binary serialization in C#
0
By default object instances in .NET are never "trully" clonned. Instead .NET is doing shallow copy of instances which means if you have one variable which is object instance and you assign that variable to other variable, both of them will point the same instance of that object...read more
.NET
5
Jun
2022
Using dotnet nuget package vulnerability scan in Azure DevOps build
Listing nuget vulnerabilities and controlling build in Azure DevOps
5
May
2022
Protecting static files in ASP.NET Core using custom middleware
Restricting access to specific static content with middleware in ASP.NET Core
20
Dec
2021
Supporting multiple authentication schemes in asp.net core webapi
Using more than one authentication schemes in webapi projects
12
Dec
2021
Controlling the flow of migrations in EF Core
Altering EF Core migrations execution order
28
Nov
2021
Unit of work pattern with Dapper
Implementing unit of work pattern with Dapper in .NET 5
21
Sep
2021
Adding display name to Enum values
Implementing additional values for Enum items in C#
JavaScript
28
Oct
2018
HTML5 localStorage with expiry with vanilla JavaScript
Using HTML5 localStorage with expiry
8
May
2018
Monitoring DOM changes with JavaScript
Handling DOM changes with plain JavaScript
9
May
2017
Non blocking CSS load on the page
Load external CSS files in an async manner
16
Mar
2017
Serialize html form to JSON without using JQuery
Transform user input from HTML form fields to JSON
17
Jan
2016
Copy text value to clipboard using jQuery
Simple sample of using jQuery to copy value to clipboard
11
Jan
2016
Resize image on the client side with JQuery
Reducing the upload sie by resizing image on the client side
SQL/T-SQL
22
Feb
2022
Select column names with values from SQL Server database
Fetching column names with its value in T-SQL using built in JSON methods
23
May
2020
Identifying opened connections for the specific application in SQL Server
Connection listing queries in SQL Server
3
May
2018
Reading JSON data in T-SQL on SQL Server
Extracting values from JSON string on SQL Server using T-SQL
28
Apr
2016
Create XML/HTML with T-SQL
Generating XML/HTML output in SQL Server
24
Nov
2015
IP address to octets split in TSQL
Split IP addresse into octets in SQL Server
20
Jul
2015
Getting first and last second of the current year, month and day
Using minimum and maximum date time in SQL query
Umbraco CMS
2
Mar
2018
Minify HTML output of your pages
Minification of HTML output using ASP.NET IHttpModule
18
Apr
2015
Generate sitemap.xml on the fly in Umbraco CMS
Simple sitemap.xml Umbraco handler
2
Mar
2015
Accessing UmbracoHelper in HttpHandler request
Working with UmbracoHelper and IPublishedContent in HttpHandler
14
Sep
2014
Same page language switching in Umbraco
Land on the same page in different language in Umbraco using Relations
4
Sep
2014
Getting cropped image the smart way
The way to get cropped image URL with option to load original image too
27
Aug
2014
Fastest way to return JSON result from a controller
Resturn JSON in MVC controller action