BIG Problem with Bound Data

Results 1 to 2 of 2

Thread: BIG Problem with Bound Data

  1. #1
    Join Date
    Dec 1969

    Default BIG Problem with Bound Data

    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&#039;s MUCH more efficient to bind the control to the database query, but when I do that I&#039;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

  2. #2
    Join Date
    Dec 1969

    Default use OnDataBinding

    &#060;asp:datagrid id="dg1" OnDataBinding="your1337functionhere"&#062;<BR><BR> Sorry I don&#039;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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts