BIG Problem with Bound Data

zaidiis

New Member
Hi,<BR><BR> In regular ASP, I noticed that when inserting database values containing multiple sequential spaces (i.e. "a b") into a web page, the browser (at least IE) converts it to "a b". I got around this by manually converting any white space into nbsp as I filled up the controls.<BR><BR> With ASP.NET, it's MUCH more efficient to bind the control to the database query, but when I do that I'm losing those embedded spaces again. Is there some property or something I can do to prevent this from happening?<BR><BR>Thanks,<BR>Deanna<asp:datagrid id="dg1" OnDataBinding="your1337functionhere"><BR><BR>Sorry I don't have a code example for you, you can probably find one at MSDN or something, but you can use OnDataBinding event to evaluate (or shape) data as it gets placed into the control to which it is bound
 
Back
Top