Get Absolute URL – Web Application

Getting fully qualified absolute path of ASP.NET application is always tricky and problem arises when code moves across various platform. Hard coding the Application Path is no where a good solution here. The URL syntax is:

Two solutions that you can look for in such scenarios: 1. Add an entry in your web.config file …

Upload Binary data as HTTP POST

Below is the ASP.NET C# implementation of Uploading binary data like images as POST request to target URL:

The binary data so posted can be retrieved on target post URL using below code:

This scenario is very handy specifically in establishing communication between two different web technologies. For example: You can POST image …

Reverse Data Synchronization

Synchronization of data from Production to Development environment is merely a task of taking backup of Production DB, restoring it to Development environment and running to cleanup scripts to hide/overwrite user-specific critical information. This is pretty straight forward and does not even require domain knowledge. However, reverse is tricky, risky & surely need good insight …

Detect Executable file or Virus during File Upload

Many times we fall in a situation where we have implemented detection of file type based on file extension. It’s pretty easy to do that on both client as well as server side. But does it guarantees that file uploaded is not actually an “exe” file. Well, anyone can rename an “abc.exe” to “abc.txt” and upload it to your …

Performance Tuning: Focus Areas

Below image depicts the focus areas if you are considering Performance Tuning as area of interest. As a developer, you can only control Platform (by configuring the hosting environment as per application requirement) & Application (by optimizing design & code implementation with due consideration of functional requirements) and these should be the key focus areas. …

Code Configuration & Release Packaging Strategy – Basics

Maintain three branches of code: N, (N+1) and (N+2): Branch N corresponds to Prod version Branch (N+1) corresponds to QA version Branch (N+2) corresponds to DEV version Access right to each branch needs to be separately given depending upon the team or person working on particular phase of implementation. This task can be assigned to …