Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

If inside query

$
0
0

Hi, I have a query that I have to return Title only if it exists, if it doens't exist I have to get LinkFilename. How do I do that pls?

            result = SPContext.Current.Web.GetSiteData(query).Rows.Cast<DataRow>().Select(row => new DocumentsRecentsItem(
                int.Parse(row["ID"] as string),
                row["Title"] as string,   >>>>>>>>>>>> HERE IF "TITLE" IS EMPTY IT TAKES "LINKFILENAME"
                row["FileRef"] as string
            )).ToList();



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>