Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carole 10 posts 30 karma points
    Mar 13, 2012 @ 11:47
    Carole
    0

    List forms in a .NET usercontrol

    Hello,

    I need to set several contact forms on a website using Contour. No problem with that.

    But I can't find in developer docs how to list all this forms, for example a dropdownlist in a .NET usercontrol. Is there a method in the contour library to get all forms in contour ?

    Thanks for your help.

  • Comment author was deleted

    Mar 15, 2012 @ 16:21

    Sure, if you reference umbraco.forms.core you should be able to access all the contour forms.

    Will be something like

    umbraco.forms.core.data.formstorage s = new umbraco.forms.core.data.formstorage();

    var forms = s.getallforms();

Please Sign in or register to post replies

Write your reply to:

Draft