?
Solved

Code to test Databinder

Posted on 2013-01-28
4
Medium Priority
?
218 Views
Last Modified: 2013-02-08
<%DataBinder.Eval(Container.DataItem,"PALACE_1")

what code should I add to test if the Dataitem is ""? If it is blank, ignore it.
0
Comment
Question by:zachvaldez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38830701
First, what do you mean by "ignore it"?  Second, you could use the string.IsNullOrEmpty function.
0
 

Author Comment

by:zachvaldez
ID: 38830983
Sorry,leave it blank.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38831083
An empty string would naturally be blank, so I thought you were looking for something more elaborate.
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 940 total points
ID: 38844291
Hi,

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

Hope it helps u...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question