A
AAaron123
<asp:Label id="descriptionLabel" runat="server" Text='<%#
truncate(CStr(Eval("description"))) %>' />
I suppose I could use the code behind to solve this but I wonder if there is
a way in the .aspx file to handle the situation where Eval returns a DBNull?
I wouldn't want to go to an error page just to handle this.
Like a try/catch
Also, is the CStr necessary. I read that Eval returns a string.
This is inherited code.
Thanks
truncate(CStr(Eval("description"))) %>' />
I suppose I could use the code behind to solve this but I wonder if there is
a way in the .aspx file to handle the situation where Eval returns a DBNull?
I wouldn't want to go to an error page just to handle this.
Like a try/catch
Also, is the CStr necessary. I read that Eval returns a string.
This is inherited code.
Thanks