If you have access to the data source why not do a select criteria where not <Field> is null
Jarrad -----Original Message----- From: Jeffrey Idea [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:31 PM To: [EMAIL PROTECTED] Subject: [AspNetAnyQuestionIsOk] Checking 4 null values in DataList items I have a DataList with labels in the Items template which display field data from a datasource. The Datalist is bound dynamically during the Page_Load event. Up to this point, i've been binding the Text property of my Asp labels in the Datalist by putting the code in the HTML window. Text='<%# DataBinder.Eval(Container.DataItem,"NAME OF FIELD") %>' Now, I need to make sure that the value in the field is not null before I do this binding of the Asp label. How can I do this? Should it still be in the HTML code window, or can the code be placed in some Sub in the Code Behind window? Jeff Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
