Copied to clipboard

Flag this post as spam?

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


  • Tizer 170 posts 201 karma points
    Jun 22, 2010 @ 15:10
    Tizer
    0

    Putting an existing form in umbraco

    I've got an existing, non umbraco, form which has a fields with user input and a file upload field, when submitted, it sends an email with attachment and redirects to a confirmation page - I need to integrate this into an umbraco site.

    This is how I am planning to do it and wanted to know if I'm on the right track

    1 - Create a new template for the new page
    2 - Create a usercontrol.ascx file using the existing code from the page on my existing site and copy this to the usercontrol directory.
    3 - Create a Macro and specify my usercontrol file
    4 - Insert the Macro code onto the template

    And thats it... but it seems too easy - is there something I am missing here? Will the form be emailed OK still? Is there more umbraco code which I need to include?

    Cheers

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jun 22, 2010 @ 15:13
    Morten Bock
    0

    That should be just fine. You need no reference to umbraco to include a macro.

    You could even skip the macro part and just insert it as a regular usercontrol in the masterpage template, as you would on any .aspx page.

  • Tizer 170 posts 201 karma points
    Jun 23, 2010 @ 01:03
    Tizer
    0

    Wow - I'll give it a go :)

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Aug 11, 2010 @ 14:25
    Biagio Paruolo
    0

    Do that steps go for any type of form?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Aug 11, 2010 @ 18:29
    Morten Bock
    0

    Any .Net usercontrol should work this way yes.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies