Friday, January 15, 2010

AutoCompleteExtender Trim's Leading Zero's

When using the AutoCompleteExtender leading zero's are removed from strings because of JavaScript converting them to an int.

A good workaround found here: ajax AutoCompleteExtender cuts leading zeros.

Wrap the strings in single quotes "'" + myString + "'" to prevent the zero from being trimmed.

No comments: