PC Review


Reply
Thread Tools Rate Thread

3.5 ListView - How do I do conditional logic the right way?

 
 
mikebrengartner@gmail.com
Guest
Posts: n/a
 
      27th Feb 2008
Hi all,
I've got a data bound list view that I'm trying to work with. I'm
trying to fill out the item template with a table row that displays a
link to a file if the job status is complete. I've found that using
Eval won't work, since it is only applicable to databound items, not
for conditional logic.

What's the right way to do this? My guess is that I need to trap an
event off the listview and do it as it builds, but the obvious choices
don't seem to be appropriate.

Any thoughts?

Thanks in advance,
Mike
 
Reply With Quote
 
 
 
 
mikebrengartner@gmail.com
Guest
Posts: n/a
 
      28th Feb 2008
Something like this:

if (Eval("Status") == "Complete")
{
<a href="sompath.file">File Name</a>
}
else
leave blank
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Same row conditional logic (count help) Gary Microsoft Excel Misc 0 12th Feb 2008 08:07 PM
USING DATA VALIDATION WITH CONDITIONAL LOGIC =?Utf-8?B?RGF0YSBWYWxpZGF0aW9uIEFORCBDb25kaXRpb25h Microsoft Excel Misc 2 28th Sep 2007 05:09 PM
Conditional Format logic =?Utf-8?B?SXJhbQ==?= Microsoft Access Form Coding 3 12th Apr 2007 12:56 AM
Repeater, conditional logic =?Utf-8?B?UmFzaWthIFdJSkFZQVJBVE5F?= Microsoft ASP .NET 2 13th May 2005 01:44 AM
MSI files, conditional logic? David Sworder Microsoft Dot NET 2 9th Mar 2004 10:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 PM.