PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/pigeoncms/Modules/PigeonCms.EmailContactForm/views/NewsletterSubscription.ascx

http://pigeoncms.googlecode.com/
ASP.NET | 41 lines | 35 code | 6 blank | 0 comment | 0 complexity | 1d984b16e8fd809eaa8b20c9f5d44780 MD5 | raw file
 1<%@ Register TagPrefix="cc1" Namespace="WebControlCaptcha" Assembly="WebControlCaptcha" %>
 2<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsletterSubscription.ascx.cs" Inherits="Controls_NewsletterSubscriptionControl" EnableViewState="false" %>
 3
 4<%=HeaderText %>
 5<%=base.GetLabel("LblHeader") %>
 6<fieldset class='EmailContactForm <%=BaseModule.CssClass %>'>
 7<dl class='EmailContactForm <%=BaseModule.CssClass %>'>
 8
 9    <dt class='<%=BaseModule.CssClass %>'>
10        <%=base.GetLabel("LblNewsletter", "La tua email", TxtEmail) %>
11    </dt>
12    <dd class='<%=BaseModule.CssClass %>'>
13        <asp:TextBox ID="TxtEmail" MaxLength="100" ValidationGroup="NewsletterSubscription"
14        runat="server" Width="300px" CssClass="EmailContactForm"></asp:TextBox>
15        <asp:RequiredFieldValidator ID="RequiredEmail" runat="server" ControlToValidate="TxtEmail"
16        ValidationGroup="NewsletterSubscription" ErrorMessage="">*</asp:RequiredFieldValidator>
17        <asp:RegularExpressionValidator ID="RegularEmail" runat="server" ControlToValidate="TxtEmail"
18        ErrorMessage="e-mail non valida" ValidationGroup="NewsletterSubscription" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
19    </dd>
20
21</dl>
22</fieldset>
23
24<asp:Panel ID="PanelPrivacy" runat="server">
25    <asp:TextBox ID="TxtShowPrivacy" runat="server" />
26    <asp:CheckBox ID="ChkShowPrivacy" runat="server" Checked="false" />
27    <%=base.GetLabel("LblPrivacyText", "message", ChkShowPrivacy) %>
28    <asp:RequiredFieldValidator ID="RequiredShowPrivacy" runat="server" ControlToValidate="TxtShowPrivacy"
29        ValidationGroup="NewsletterSubscription" ErrorMessage="" InitialValue="false">*</asp:RequiredFieldValidator>
30    <br />
31</asp:Panel>
32
33<cc1:captchacontrol id="CaptchaControl1" runat="server" ValidationGroup="NewsletterSubscription"></cc1:captchacontrol>
34
35<asp:Button ID="BtnSend" ValidationGroup="NewsletterSubscription" CssClass="button" runat="server" 
36    Text="<%$ Resources:PublicLabels, CmdSend %>" onclick="BtnSend_Click" />
37<br />
38<span class="erroreSmall"><%=LblErroreInfo %></span>
39<span class="success"><%=LblSuccessInfo %></span>
40<br />
41<%=FooterText %>