With this TSQL script, we can remove HTML content as long as
there are valid start and ending HTML tags.
Script:
Create FUNCTION [dbo].[udf_StripHTMLContent]
(@content VARCHAR(MAX),@tagStart varchar(55), @tagEnd varchar(55))
RETURNS VARCHAR(MAX)
AS
BEGIN
DECLARE @start INT=1
DECLARE @end INT=1
DECLARE @len INT=1
...
9/14/14
Recover a SQL Server management studio query
We often come across the case when SSMS crashes and perhaps
your query was not saved. If you have the AutoSave feature enabled, you can
find a temporary file at this location:
c:\users\{username}\SQL Server Management Studio\Backup
Files\Solution1
If you do not have this feature, you can still recover the
script to the state when it was last executed by reading the information from
the dynamic...
9/13/14
Client Side HTML Semantic Templates with Handlebars.js

When working with ASP.NET MVC Web applications, a common approach
is to create the user interface by defining server side views and binding the
model/data to these views. Basically the HTML gets generated on the server.
What if we would just like to download the data and templates to reduce the
HTML...
7/19/14
Change SharePoint ms-core-brandingtext with JavaScript

A quick note about this task is that you can rename the SharePoint site brand name with SharePoint Management PowerShell to avoid having to use this approach. When we do not have access to PowerShell, we can do this with some JavaScript on the site’s master page. We should use SharePoint 2013 Designer...
7/12/14
TFS Build Web.config Transformation

With Visual Studio, we are able to create different build
configurations with the Configuration Manager. This allows us to create
different web.config files for a particular build target like Stage, Prod. The
idea behind this is that each target configuration contains the correct
application settings...
5/31/14
Custom Error Page 401 Access Denied when Using Windows Authentication

ASP.NET provides us with the ability to add custom pages for HTTP errors via Web.config CustomErrors tag. This however does not work when we try to handle the 401 error under Windows authentication. The reason for this is that this error (401) is raised during the Authorization request...