.NET

@aspnet

Simple plugin host application approach in C#

Building simple plugin host application in C#
 
0
A lot of, especially desktop applications implement plugin approach in order to make application more expendable and allow other vendors to include their specific functionality related to applications with plugins. Usually plugins are available from some sort of repository from which user can select and download them directly to application. I will not go deeper in approach for this in this article...read more

Persistent authentication cookie and autologin

Custom made autologin with persistent authentication cookie
0
ASP.NET comes with built in login form both for WebForms or MVC, but sometimes you have to do it in a custom manner where permanent authentication cookie needs to be set from your code following your business logic. First thing you have to do is to set expiration time for authentication cookie in web.config. This is for done first to make sure that your cookie does not expire during your testing. ...read more

Maintaining same session with separate web requests from C# code

Create separate web requests with the same server session
0
Recently I started a small project for image optimization which relies on public image optimization services available online. For now it supports Yahoo SmushIt and Compressor.io services, but it will be extended over the time. Project is open-source and hosted at GitHub https://github.com/dejanstojanovic/ImageOptimization. ...read more

Getting social network access token from C# backend

Acquire Facebook or Google+ access token from C# code
0
Most popular social networks such is Facebook and Google+ are providing authentication for web applications with fancy javascript pop-ups. However this approach might not work in all browsers and most likely not on every device. For example this approach does not work on iPhone or iPad because browser itself does not allow pop-ups...read more

Honeypot implementation in ASP.NET MVC

Honeypot bot detection implementation in MVC
 
0
You can find a bunch of articles on internet about HONEYPOT implementation on web pages, but in short it is a replacement for CAPTCHA anti-bot security. In CAPTCHA scenario, user needs to enter hardly recognizable characters in order to prove that he is not a bot trying to submit data...read more

Change Request.Form collection on the fly

How to modify Request.Form collection
0
Data from form are sent to backend (whether code behing of page in WebForms or Controller Action in MVC) in Request.Form property. It is oragnized as collection of name and value and can be easily access by name. In some extreme cases, you need to make some modifications to posted form data. ...read more

Access auto property backing field with reflection

Access property fields of auto property in C#
0
Using reflection you can easily access any property, filed, methods, pretty much anything of any type in .NET. Reflection is never the most elegant way to do something, but sometime you just have to do it. In older versions of C#, to declare a simple property in a class you would have to declare a private field which will be exposed by the property outside the class ...read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more

PowerShell

read more