Thursday, November 1, 2012

How to truncate text while data binding

How to truncate text in a label control to allow maximum number of characters. I would like to avoid using code behind because the label is in a repeater.

   1: # Eval("EventDate").ToString().Substring(startIndex, Length of string)

Happy coding…

No comments:

Post a Comment