Author: Yaniv.net | Posted on: 7/26/2009 6:41:25 AM | Views : 1109

 i have a listview with sqlDataSource in my webpage.
i would like to display in one of the labels in the itemtemplate just part of the text so i am using :
<%# Eval("PText").ToString().Substring(0,40) %> the problem is that i gt exception when the PText value return from the database is null, what should i do ?
is there any way to get over it without checking the value in the databound event ? what is the best way ?
Thanks

...

Go to the complete details ...