Code to test Databinder


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

Check the solution in this ASP.NET thread -

Hope it helps u...
Bob LearnedCommented:
First, what do you mean by "ignore it"?  Second, you could use the string.IsNullOrEmpty function.
zachvaldezAuthor Commented:
Sorry,leave it blank.
Bob LearnedCommented:
An empty string would naturally be blank, so I thought you were looking for something more elaborate.
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.