I had to redirect one particular page to different destination for an application. I wanted to do this via web.config only. This is what I did: <location path="default.aspx"> &...
If you want to remove invalid chars "* . " / \ [ ] : ; | = ," from file name below is the code which can help you Sample code: using System; using System.IO; using System.Text.RegularEx...
While running "node make server" over pdf.js source I was getting the following error: assert not GIT_CLONE_CHECK or os.path.isfile('../src/pdf.js') and os.path.is dir('../.git...
While running the "node mke server" command in GitBash today I was getting the following error: 'python2.7' is not recognized as an internal or external command, operable program or ...
By default jQuery date picker set the zindex to 1 while opening the date picker. This can cause the issue if you have a fixed header. The picker can appear beneath the header like this: The fix for th...
Recently one of our developers was facing this error when trying to connect with a secure SMTP server to send emails via C# code: "Email Sending Failed. Reason: Failure sending mail. Inner: Syste...
If you want to apply 301 (Redirect permanent) for all http requests to https you need to add the following section in your system.webserver section of your web.config file: <rewrite> &am...
If you want to remove Cut, Copy and Paste menu it the Tinymce editor the following blog will help you It can be done via adding the following line via tinymce init method like this: removed_menuitems:...
I installed Windows XP SP3 image on Virtual Box VM in my machine. Everything worked well in the installation but I was not able to connect to internet. In order to fix that I selected the following op...
We recently started using database project in our application. To get the updated stored procedures from database project to destination database we were using "Build" option. The issue with...
In this blog I will show you how to swap two integer variables. I will be using Interlocked.Exchange to do the same: using System; using System.Threading; namespace SampleConsoleApplication { class Pr...
I tried creating a database project todat in VS2012 but was encountered with the following error: Unable to open Database Project This version of SQL Server Data Tools is not compatible with the datab...
In this blog I will help you how to delete duplicate rows from a table where there is no primary key in the table. Below is the script to insert data: CREATE TABLE MyTable ( Col1 INT , Col2 VARCHAR(10...
If you are facing 404 error while accessing iso extension file this blog will help you. You need to add following code in your web.config: <remove fileExtension=".iso" /> &...
If you want to resize the hiberfil.sys on your machine running on Windows 7 you need to run following command: powercfg -h -size 50 Above 50 is the percentage by which you want to reduce
If you want to enable hibernation on your machine running on Windows 7 you need to run following command: powercfg -h on You can verify whether the above command was successfull or not by checking sta...
If you want to disable hibernation on your machine running on Windows 7 you need to run following command: powercfg -h off You can verify whether the above command was successfull or not by checking s...
In this blog I will show how to replace single backslash with double backslash in a string with REGEX. Let's say we have a string "This is \ test \ string" and we want to replace single ...
In this blog I will show how to replace uppercase letter with "underscore and the letter "in a string with REGEX. Let's say we have a string "ThisIsTestString" and we want to r...
In this blog I will show how to replace underscores with hyphens in a string with REGEX. Let's say we have a string "This_is_test_string" and we want to replace underscores with hyphens ...
In this blog I will show how to get number only from a string with REGEX. Let's say we have a string "Hello 123456789 user 456 welcome." and we want the output to be "123456789456&q...
In this blog I will show how to validate a string to allow alphanumeric characters only in a string with REGEX. Below is the sample code to do the same: using System; using System.Text.RegularExpressi...
In this blog I will show how to remove all non numeric characters from a string with REGEX. Let's say we have a string "(912)-555-7777" and remove all non numeric characters so that the ...
In this blog I will show how to remove all non alpha numeric characters from a string with REGEX. Let's say we have a string "Hello!@#$123456789~~-_user456welcome" and remove all non alp...
In this blog I will show how to reverse all numbers in string with REGEX. Let's say we have a string "Hello 123456789 user 456 welcome." and we want to reverse it like "Hello 987654...