Advertisement

05.08.2008 at 08:01AM PDT, ID: 23386317
[x]
Attachment Details

xpath IIF is Nothing syntax question

Asked by Tania_Farmer in .NET, Programming for ASP.NET, Microsoft Visual Basic.Net

Tags: asp.net xml

Hi,

I am about to use this in my asp.net page and it works fine -  

 <ItemTemplate> <%# IIf(xPath("@title")Is Nothing, "", "<h3>Module:   "   &  XPath("@title") &  "     </h3>" ) %> ....


My question is - "Is Nothing" the correct expression for this?  I am very new to vb and asp.net.   Basically, if there is no title tag nothing shows.

Cheers
Tania Start Free Trial
[+][-]05.08.2008 at 08:09AM PDT, ID: 21525405

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, Programming for ASP.NET, Microsoft Visual Basic.Net
Tags: asp.net xml
Sign Up Now!
Solution Provided By: DarrenD
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.09.2008 at 12:35AM PDT, ID: 21530941

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628