More in this section
Forums / Developing with Sitefinity / How to fetch module field values

How to fetch module field values

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
5 posts, 0 answered
  1. Surya CD
    Surya CD avatar
    57 posts
    06 Apr 2010
    05 Jun 2012
    Link to this post
    A module is created using module builder. There are 2 fields in it, say page name and url.
    Currently, I am querying the table corresponding to that module in the database to fetch the field values. Is there any way to fetch these values without querying the database.

  2. Steve
    Steve avatar
    3037 posts
    03 Dec 2008
    05 Jun 2012
    Link to this post
    If you go into the place where you created your module, there should be a Code Samples area which should give you the exact code for a bunch of scenarios.  It's very cool because it's generated based on the module definition, not just a generic you can just copy\paste the code and it'll work (awesomesauce)

  3. Mark
    Mark avatar
    147 posts
    01 Jun 2010
    05 Jun 2012
    Link to this post
    I've found this Module Builder webinar and the solution that is below the webinar to be invaluable: 

    It goes through fetching tags, categories, text fields, choice lists, images, ect.
    DEEPIKA avatar
    1 posts
    11 Oct 2013
    24 Oct 2013 in reply to Mark
    Link to this post
    I m not able to access that 
    because of some security issues. Can you help me ? My question is the same as that of Surya CD. How to fetch all the field values without querying the database?
  5. Vassil Vassilev
     Vassil Vassilev avatar
    308 posts
    21 Jan 2015
    29 Oct 2013
    Link to this post

    Each module created with Sitefinity Module Builder has a code reference. There, you can find working C# or VB.NET samples of creating/deleting/querying items for your module.
    Please try to access the video tutorial from  or download it from this link.

    If you keep having problems accessing any of the links above let us know to assist you further.

    Vassil Vassilev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered