Solved

Code to test Databinder

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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