Author: curtisdehaven | Posted on: 11/13/2009 10:19:27 AM | Views : 423

Hi All...  I'm binding a DropDownList with a DataTable filled from a SQL Server database.  In that data, I'm trying to do some layout using multiple spaces.  Since the browser filters multiple spaces to appear as a single space, I'm having the query embed the special character code "&nbsp;" in the data.  However by the time things get redered, the control is apparently replacing the "&" with its special code representation - "&amp;"  In other words the data appearing in the <option> tags appears as "&amp;nbsp;" which appears on the page as "&nbsp;" instead of " ".  How can I get the control to leave my &'s alone?  Thanks -- Curt
 
 
...

Go to the complete details ...