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='
Comments
Post a Comment