(828) 862-6667

Sitefinity Blogs


  • Little known Sitefinity configuration settings
  • More detailed examples for Sitefinity component usage
  • Work-arounds for Sitefinity limitations
  • Discoveries and Ah-Ha moments 

Programmatically access a Sitefinity List Control

by Rich Winslow | Sep 25, 2010

Would you like to be able to find a Sitefinity List and access the Headline and Content?

You can do that fairly easily as you'll see below. Unfortunately, there isn't a 'FindList()' function to get the single list you are looking for, however, a simple traversing of your full set of Sitefinity Lists and you can pick out the one you are looking for.

Dim mgrList As New Telerik.Lists.ListManager() Dim guidListId As Guid = Nothing Dim objLists As IList = mgrList.GetLists() Dim objList As Telerik.Lists.INamedList Dim objListItem As Telerik.Lists.IListItem Dim objListItemId As Guid = Nothing Dim strHeadline As String = "" Dim strContent As String = "" ' Get all the lists For Each objList In objLists ' Find the one list you are after If objList.Name = mstrListName Then ' Found the list we want, so keep track of the list's id for future reference guidListId = objList.ID ' Walk the set of items within the desired list For Each objListItem In objList.Items ' Get the Title and Content to work with strHeadline = objListItem.Headline strContent = objListItem.Content .... Next Exit For ' Found the one we wanted, don't bother with the other Lists in the set End If Next

3 Comments

  1. 1 Louboutin sko 11 May
    nd the revolutionary on the net undertaking financial system. </p> <p>Since this workclubs will not be shops from the everyday good sense on the concept, <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-pumps-c-5.html" title="Christian Louboutin Pumps">Christian Louboutin Pumps</a></strong> theyve already somewhat small running costs, in <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-flats-c-6.html" title="Christian Louboutin Store">Christian Louboutin Store</a></strong> line with Mr Rosedale. They need to bust despite the presence of simple <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-st%C3%B8vler-c-2.html" title="Christian Louboutin Støvler">Christian Louboutin Støvler</a></strong> undertaking finish within the <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-sandaler-c-3.html" title="Christian Louboutin i København">Christian Louboutin i København</a></strong> <strong><a href="http://www.christianlouboutin-tilbud.com/" title="Louboutin København">Louboutin København</a></strong> areas, if it turns <strong><a href="http://www.christianlouboutin-tilbud.com/" title="Christian Louboutin">Christian Louboutin</a></strong> out a <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-flats-c-6.html" title="Christian Louboutin København">Christian Louboutin København</a></strong> <strong><a href="http://www.christianlouboutin-tilbud.com/" title="Christian Louboutin Tilbud">Christian Louboutin Tilbud</a></strong> practical number <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-sneakers-c-7.html" title="Christian Louboutin Sneakers">Christian Louboutin Sneakers</a></strong> of C$ payoff to help tricky <strong><a href="http://www.christianlouboutin-tilbud.com/" title="Louboutin sko">Louboutin sko</a></strong> foreign exchange. A compact, but is not nugatory component of this orders has a protected <strong><a href="http://www.christianlouboutin-tilbud.com/" title="Christian Louboutin sko">Christian Louboutin sko</a></strong> real destination to match, often to figure in concert so they can alternate materials, <strong><a href="http://www.christianlouboutin-tilbud.com/christian-louboutin-evening-c-4.html" title="Louboutin Danmark">Louboutin Danmark</a></strong> Mr Rosedale notices. This workclubs are classi...
  2. 2 jordan sneakers 25 Apr


    when,  <b><a href=http://www.usnewjordan.org/air-jordan-retro-2-C33.html>air jordan ii</a></b> how <b><a href=http://www.usnewjordan.org/jordan-son-of-mars-C79.html>cheap jordan son of mars</a></b> to <b><a href=http://www.usnewjordan.org/jordan-son-of-mars-C79.html>jordan son of mars</a></b> do  ?Yu <b><a href=http://www.usnewjordan.org/nike-zoom-kobe-vii-C83.html>nike zoom basketball shoes</a></b> Ying sometimes  found  ,when <b><a href=http://www.usnewjordan.org/jordan-son-of-mars-C79.html>jordans son of mars</a></b> she  talk about  some  <b><a href=http://www.usnewjordan.org/>jordan release dates 2012</a></b> .
  3. 3 jordan sneakers 25 Apr
    jordan 7 Cui Lei told air jordan 6 infrared reporters air jordan 9 powder blue nike air jordan 13 ,Shuangcheng City Urban Management Bureau is jordan spizike sent new jordan shoes 2011 more than 140.

Comment

  1.    
     
     
      
       

Why Give Our Secrets Away?

I often get asked why I'm willing to journal all of my Sitefinity discoveries. People think I'm insane to give away for free what I labored over at some point.

Let me answer that in 2 parts:

  • Why journal my discoveries?

    Because I forget and I want to a library of knowledge to refer back to. Oh but it is far worse than that... THREE TIMES now, I've gone to Google and searched for a solution to a problem, only to find MY OWN BLOG entry is #1 in Google and viola! there's the solution!
  • Why give it away for free?

    Because others have been kind enough to do it for us; what goes around, comes around.

    There are all levels of experience, thus someone with less experience may defer to us when needed.

    The lines of 'competition' are very much blurred; in our minds competition is a potential customer or partnership in the right situation.

    We maintain healthy partnerships with one of our competitors; they come to us when they need help and visa versa.

    There is plenty of work out there for everyone if you are putting out quality work and you are straightforward with clients and competition.

Talk to us about how we can help YOU!

 


Don't miss out!

Keep up with our Sitefinity discoveries!
Click on the RSS feed icon below or sign up for our newsletter.


Email Address:
     















Company Info  |   Contact Us  |   Site Map  |   Terms  |   Privacy Policy  |  

Automated Results Computer Consulting LLC, 222 South Caldwell Street, Brevard, NC 28712 (828) 862-6667