Always use UrlEncode, when passing parameters to Url string

I had a function, that took the field BARCODE from the database and created URL string for Redirect with parameter ?barcode=BarcodeValue.

It worked fine for a while, because most of values were numeric or alpha-numeric.

However when  barcode has 'plus' sign in front, e.g '+2134214', on the target page

Request.QueryString("Barcode") replaces the 'plus' sign with space and returns   ' 2134214' ,which is obviously not expected

So the correct way to code is to use HttpUtility.UrlEncode , if characters such as blanks and punctuation can be used in your field, e.g.

"&Barcode=" & HttpUtility.UrlEncode(Barcode).

After fixing my code I found a very detailed article Using HttpUtility.UrlEncode to Encode your QueryStrings.

QuickCode commands file location

I was using QuickCode  on one machine and wanted to move my commands to another machine.
I didn't find it in documentation, but I was able to find setiings file as C:\Documents and Settings\MyUSERNAME\Application Data\QuickCode\QuickCode.xml.
I've copied the file to the different machine to the same directory and it works.

 

UPDATE: a new free 2008 version is available. See also my post "QuickCode.Net new TAB shortcut key"

«March»
SunMonTueWedThuFriSat
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567