Copied to clipboard

Flag this post as spam?

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


  • Chris 49 posts 67 karma points
    Mar 21, 2011 @ 22:21
    Chris
    0

    Using contact form in Umbraco

    I have a contact form in an existing site and am moving the entire site to Umbraco. My contact form is at contact.aspx with code file contact.aspx.cs

     

    How do I attach the aspx.cs form to the contact page in umbraco? (4.5.x).

     

    Hope this makes sense.

     

    Chris.

  • Jonas Eriksson 930 posts 1825 karma points
    Mar 21, 2011 @ 22:23
    Jonas Eriksson
    0

    Hi! I'd recommend you to convert the aspx to an ascx, which you can use from an Umbraco maco. http://msdn.microsoft.com/en-us/library/2x6sx01c.aspx

    Hth

    Jonas

  • Chris 49 posts 67 karma points
    Mar 21, 2011 @ 22:44
    Chris
    0

    Thanks for the speedy reply.  I am almost there. So, I have renamed the page contact.ascx and contact.ascx.cs.

     

    I have change the Control Language but I don't know what to put for Inherits and where to put the files....

     

    Chris.

  • Chris 49 posts 67 karma points
    Mar 22, 2011 @ 00:54
    Chris
    0

    So I get:

     

    Error creating control (usercontrols/contact.ascx).
    Maybe file doesn't exists or the usercontrol has a cache directive, which is not allowed! See the tracestack for more information!

     

    Must be doing something wrong...

  • Pasang Tamang 252 posts 394 karma points
    Mar 22, 2011 @ 04:39
    Pasang Tamang
    0

    Just renaming the .aspx page into .ascx doesn't solve the problem you have to create a asp.net usercontrol. And this type of error mostly comes when assembly (dll) files referenced by the controls are missing in umbraco bin directory.

    Pnima

  • Chris 49 posts 67 karma points
    Mar 22, 2011 @ 04:42
    Chris
    0

    I think that is correct.  I am now following:

    http://www.eyecatch.no/blog/my-first-umbraco-usercontrol---part-2-basic-functionality-test.aspx

    However, when I build my project, I cannot locate the created dll......

    Chris.

  • 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