Tuesday, April 7, 2009

C# bool and Javascript Boolean True vs true

A little tid bit, in JavaScript a boolen is true while in C# it is True

When writing JavaScript from C# you must do this

strScript.Append("var IsSSL=" + this.m_oReportData.ReturnValueT.IsSSL.ToString().ToLower() + ";");

Note that you must do ToString().ToLower() or else javascript craps out and doesn’t know what True means.

SourceSafe saves SQL Stored Procedures as Binary

For some reason Source Safe only works with ASCII. SQL Manager 2005 by default saves everything as UNICODE (The standard) but source safe cannot recognize this. In order to fix this you must do the following:

The issue is that sql manager saves everything in UNICODE format by default. This is an issue because source safe doesn’t accept Unicode and saves the sql file as binary. When using sql manager and saving a sql file be sure to do save encoding choose US acsii.