Tuesday, March 11, 2008

Substring of DataList field

The label control which is bind to the field for DataList control of ASP.NET page can be truncated using following syntax

Eval("FieldName").ToString().Substring(1,20)

No comments: