Code to test Databinder

<%DataBinder.Eval(Container.DataItem,"PALACE_1")

what code should I add to test if the Dataitem is ""? If it is blank, ignore it.
zachvaldezAsked:
Who is Participating?
 
Roopesh ReddyIT AnalystCommented:
Hi,

Check the solution in this ASP.NET thread - http://forums.asp.net/t/1755135.aspx/1

Hope it helps u...
0
 
Bob LearnedCommented:
First, what do you mean by "ignore it"?  Second, you could use the string.IsNullOrEmpty function.
0
 
zachvaldezAuthor Commented:
Sorry,leave it blank.
0
 
Bob LearnedCommented:
An empty string would naturally be blank, so I thought you were looking for something more elaborate.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.