Custom CheckBoxList.DataTextFormatString

  • Thread starter Thread starter james
  • Start date Start date
J

james

Does anyone know how to use the String.Replace in
CheckBoxList.DataTextFormatString ?

I tried: {0}.Replace(" ", " ")
but that obviously doesnt work.

Any Ideas?

Thanks!
James
 
James

I see what you're trying to do but it does not work like this. Format string
describes how the value should be inserted and formated, and it's not
interpreted as script (which you're trying to achive). Replace spaces with
before binding the data.

Hope this helps
 
Milo do you know how to do this with a custom formatter? I plan on
using this format on many databound items and would prefer to not make
an intermediate class for databinding each time.

-James
 
Back
Top