Copied to clipboard

Flag this post as spam?

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


  • djscorch 67 posts 106 karma points
    May 15, 2012 @ 16:22
    djscorch
    0

    Has anyone written a contact from in Razor?

    i.e without using server controls?

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    May 15, 2012 @ 17:03
    Lee Kelleher
    0

    Hi djscorch,

    There is the Cultiv Razor Contact Form package. But if that's not what you are looking for then, take a read of this blog post by Jonas Eriksson: http://joeriks.com/2011/11/06/separating-html-and-logic-in-razor-webpages-or-umbraco-macroscript/

    Cheers, Lee.

  • Jon Free 14 posts 34 karma points
    May 15, 2012 @ 17:07
    Jon Free
    0

    Why would you want to? You would still need to pick it up via server side code so that you could email it etc. Therefore a user control with code behind is much better placed to do this.

  • 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