Solved

Code to test Databinder

Posted on 2013-01-28
4
212 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
Comment Utility
First, what do you mean by "ignore it"?  Second, you could use the string.IsNullOrEmpty function.
0
 

Author Comment

by:zachvaldez
Comment Utility
Sorry,leave it blank.
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
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
Comment Utility
Hi,

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

Hope it helps u...
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now