Solved

Code to test Databinder

Posted on 2013-01-28
4
217 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 235 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 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