?
Solved

Code to test Databinder

Posted on 2013-01-28
4
Medium Priority
?
221 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
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

864 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