Posts

29 June 2023

How to re-enable fulltext search on MSSQL database

Sometimes it could happen that existing fulltext search stops working, very common scenario - after adding new table filed. It it happens without warning. Nice job MS.

16 April 2023

Middleware exception handling with ASP.NET Core

How to implement exception handling with little help of middleware concept (and ProblemDetails class) in .net core, this is what we are talk about here.

6 April 2023

Replacement for HTML tables on smaller devices

In some cases classic table elemens that looks good on big screens could be implemented little different on mobile device resolutions - with little help of javascript and dynamic DOM manipulation

13 February 2023

Block access to your site based on client's IP address

Sometimes we need to disable execution of pages based on user's IP address with rewrite rules in web.config. Or modify output like in example below.

25 January 2023

Server.MapPath in ASP.NET Core

Long time ago we used Server.MapPath to get physical directory of provided relative or virtual path. In Core 3 and above we use IWebHostEnvironment

20 November 2022

Deploy application to production server using git and post-receive hook

In this article we'll explore how to deploy on server (Linux VPS) with git and post-receive hook

3 November 2022

How to prevent opening your site inside iframe of another domain (X-Frame-Options)

Configure your IIS (web.config) to disallow iframe embeding of your content from another web sites

1 September 2022

How to git push an existing project to online repository (GitHub, Bitbucket ...)

Command line steps needed to push any existing project to git repository

3 August 2022

Upload file in C# MVC

How to upload file in C# MVC project with additional validation based on content type and file size

31 July 2022

How to check if method parameter is passed in javascript

Sometimes it is necessary to be sure that method parameter we are trying to comsume exists.