This is a Simple Contact From done in C# .Net and also can be used in Umbraco. Paste the code in to Visual Web Developer for a better view. The important bits are coment in the second file. One of the Commented out lines highlights how to get the mailto address from an Umbraco field. The code Below includes the myContactForm.ascx.cs codebehind file and the myContactForm.ascx file. 1) The myContactForm.ascx file: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContactFormforPublications.ascx.cs" Inherits="usercontrols_ContactFormPublications" %> <div class="contact-form" id="contactForm" runat="server"> <h3>Request a Publication</h3> <div class='int'> <form runat="server"> <asp:Panel DefaultButton="contactFormSubmit" runat="server"> <fieldset> <div class='
I am Mark Downie a web developer who uses the Umbraco CMS. You can see examples of my Umbraco web sites at: http://www.markdevelopment.co.uk If you have any questions, please contact me. Thanks
Comments
Post a Comment